Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47668

jiraNewComponent ends with an error

XMLWordPrintable

      Code:

      jiraNewComponent(
              component: [name       : 'componentName',
                          description: '',
                          project    : 'IN'],
              auditLog: false,
              site: 'myjira'
      )
      

      Error:

      JIRA: Site - myjira - Creating new component: Component(id=null, name=componentName, description=, leadUserName=null, realAssignee=null, userType=null, isAssigneeTypeValid=false, project=IN, projectId=0)
      Error Code: -1
      Error Message: Conflicting/ambiguous property name definitions (implicit name 'userType'): found multiple explicit names: [assigneeType, userType], but also implicit accessor: [method org.thoughtslive.jenkins.plugins.jira.api.Component#getUserType(0 params)][visible=true,ignore=false,explicitName=false]
      

       
      Suggested solution:
      Is there any reason why this property: https://github.com/jenkinsci/jira-steps-plugin/blob/master/src/main/java/org/thoughtslive/jenkins/plugins/jira/api/Component.java#L45 is called userType instead of assigneeType? After changing it to assigneeType everything seems to work just fine.

            nrayapati Naresh Rayapati
            merykozlowska Maria Kozłowska
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: