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

Assignee? #25

Closed
rafi-fisker opened this issue Jan 19, 2022 · 2 comments
Closed

Assignee? #25

rafi-fisker opened this issue Jan 19, 2022 · 2 comments

Comments

@rafi-fisker
Copy link

rafi-fisker commented Jan 19, 2022

How can we assign to a user?

I tried

    - name: Create
      id: create
      uses: atlassian/gajira-create@master
      with:
        project: ABCD
        issuetype: Task
        summary: |
          Test issue
        description: |
          This is a test
        fields: '{"assignee": "<accountId>"}'

Not having any luck. I tried account ID and email.
It creates the ticket Unassigned. If I don't set that field it creates with the default assignee.

@rafi-fisker
Copy link
Author

I figured it out

fields: '{"assignee": {"accountId": "<account ID>"}}'

@sanjogpandasp
Copy link

Hello @rafi-fisker Do you happen to know if this works for field type labels too?

I am currently using
fields: '{"labels": "asdf"}'
But this does not seems to work.

Error -

jiraError: { labels: 'Specify the value for labels in an array of strings' }

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

2 participants