gajira-create icon indicating copy to clipboard operation
gajira-create copied to clipboard

Labels aren't applied successfully on created issues

Open jesseadams opened this issue 1 year ago • 1 comments

In this example:

      - name: Create JIRA Issue
        id: create
        uses: atlassian/gajira-create@v3
        with:
          project: IL23
          issuetype: Task
          summary: CI Failure for ${{ github.repository }}
          description: Please see full details at https://github.com/${{ github.repository}}/actions/runs/${{ github.run_id }}
          fields: '{"labels": ["ExampleLabel"]}'

It creates the Task in JIRA for the correct project, but the label doesn't exist.

jesseadams avatar Sep 07 '23 18:09 jesseadams

Hi Jesse, My team recently took over some of these actions, I went through the process from scratch and I am getting labels appear using the same syntax as you...

Would you be able to retry?

Unlikely, but can you double check that the actions were successful in your GitHub actions tab, just incase it returned an error.

    - name: Create
      id: create
      uses: atlassian/gajira-create@v3
      with:
        project: E2E
        issuetype: Task
        summary: Test task from GH
        description: details of things
        fields: '{"labels": ["ExampleLabel"]}'
        
        # Show me the new issue
    - name: Log created issue
      run: echo "Issue ${{ steps.create.outputs.issue }} was created"
        
Screenshot 2023-09-19 at 2 25 21 PM Screenshot 2023-09-19 at 2 25 10 PM

joshkay10 avatar Sep 19 '23 02:09 joshkay10