Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How can I add 'assignee' to JIRA issue request via POSTMAN?

Edited

No matter where I put the assignee parameter in the body of the request, it does not populate in the Issue that I'm creating in JIRA. I'm a bit new working with JIRA's REST API so my ticket request is pretty simple (not much custom fields at all -but Im working slowly getting there).

However, I believe the format/syntax is right because I'm not getting an error parsing JSON message error in the response. And the ticket is still being created in JIRA even when I have 'assignee' in the body of the request. Having the 'assignee would be a neat feature to have automatically generated through the request for notifications Service purposes.

Can't I place 'assignee' param go anywhere on this request? I've tried in a few spots with no luck.

{
  "fields": {
    "project": {
      "key": "QA"
    },
    "summary": "Failure detected",
    "description": {
      "type": "doc",
      "version": 1,
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "Failure has occurred in POSTMAN"
            }
          ]
        }
      ]
    },
    "issuetype": {
      "name": "Task"
    }
  },
  "assignee": {
      "id": ""
}
}

Which creates this ticket (Screen Shot):

zhTdI.png

1 answer

0 votes
Carlos Faddul
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 07, 2021

@Ghulam Murtazaif you are using Jira Cloud, you can put the accountId in quotes, like the example bellow.

  },
  "assignee": {
      "id": "21435654322fdgvsdfsd"

 Remembering that the assignee must have a license and permission to be assigned to the project.

I hope I helped you.

If this post was helpful, mark it as Accepted Accepted, so you can help others who may have the same difficulties.

If your question has not been resolved, please post again with more details.

Similarly, I'm in a branching to find one issue using JQL then update the trigger issue's assignee from the one issue's assignee.

{
           "fields" : {
{{triggerIssue.assignee}} : { "id": "{{ issue.assignee.accountId}}" }
                          }
}

is invalid JSON and this is ironically in Server version

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events