Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting custom fields? #2

Closed
psyked opened this issue Dec 4, 2019 · 2 comments
Closed

Support setting custom fields? #2

psyked opened this issue Dec 4, 2019 · 2 comments

Comments

@psyked
Copy link

psyked commented Dec 4, 2019

It would be really nice to be able to set custom fields on a ticket when creating them. At the moment I'm having to do a two-step workaround using the following code snippet:

           - name: Set JIRA Ticket Epic
              run: >
                  curl 
                  -u ${{ secrets.JIRA_USER_EMAIL }}:${{ secrets.JIRA_API_TOKEN }}
                  -X PUT 
                  -H 'Content-Type: application/json'
                  -d '{"fields":{"customfield_10008":"MEER-105"}}'
                  ${{ secrets.JIRA_BASE_URL }}/rest/api/2/issue/${{ steps.create.outputs.issue }}
@DanielHilton
Copy link

I would add to this, that if a JIRA project is configured to use a custom field that is mandatory for issue creation, it means this tool as it is right now cannot be used as the issue creation fails.

@rudzon
Copy link
Contributor

rudzon commented Oct 21, 2020

Hi,

Added custom field support for in new release ( https://github.com/atlassian/gajira-create/releases/tag/v2.0.1 )

can be used as:

with:
        project: GA
        issuetype: Build
        summary: |
          Build completed for ${{ github.repository }}
        description: |
          Compare branch|${{ github.event.compare }} # https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads
        fields: '{"customfield_10171": "field value from actions"}'

@rudzon rudzon closed this as completed Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants