It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't set priority when creating an issue REST API Edited

HI, I'm using Post to creat a issue and no matter what priority ID I use , issue always comes with default 'Major' priority.

I've checked, and on create through an app it allows me to set priority.

I have alos confirmed that ID i use are indeed the correct ones.

 

{
"fields": {

"project":
{
"key": "<key>"
},

"summary": "Test asign to issue custom reporter",
"description": "TEST TEST TEST",
"issuetype": {
"name": "Feature"
},

"assignee":{
"name": "Me"
}

},
"priority":{
"name": "Minor",
"id": "4"
}

}

Response:

 

{ 
"id": "<number>",
"key": "<key>",
"self": "https://<name>.atlassian.net/rest/api/2/issue/<id>"
}

 

Result:

ticket.png 

1 answer

Hello @JacobZielinski 

Can you try this:

"priority": {
            "name": "Minor"
}

Or this

"priority": {
      "id": "your priority id"
    }

 

It seems that you need to use just the id or the name not the two at the same time.

 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-issue-post

Hope this helps

Hi, thanks for the answer

unfortunately no matter what it does not work.

I get response and ticket is created without any issues but it always comes with major priority.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

314 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you