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

Add ability to set components during create/modify issue

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • release-helper-plugin
    • None
    • jenkins 2.26, release-helper-plugin 1.3

      In my jira "components" field is required for create issue. To a job I add step "New Tickets To Submit", fill main fields and add new "field value" with setted "Name of the field to set" = "components". For "The field value to set" I used many diffenent options: Component_name, "Component_name", [

      {"name":"Build server"}

      ], [

      {\"name\":\"Build server\"}

      ] and many others. In the results of creating issue with different options I always get an error "ERROR: Build step failed with exception
      RestClientException{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors=

      {components=Component/s is required.}

      , errorMessages=[]}]}"

      I found next links which describe how to files components should be filled in the REST API.
      https://answers.atlassian.com/questions/73208/how-to-set-components-in-jira-rest-api-5-x-while-creating-a-issue
      https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-edit-issues#JIRARESTAPIExample-Editissues-Addingacomponent

      Please add ability to setting components in plugin or describe documentation "how use it", if it works now.

            novatec NovaTec Consulting
            alexandrbykov Alexandr Bykov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: