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:
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The request is quite old, so I'm commenting hear just with hope that it helps someone later:
I think the root cause in original request was that the "priority" was placed outside of "fields" scope, i.e. the "fields":{...} get closed before the priority attribute being given while it's expected that "priority" attribute is a part of "fields", i.e.:
"fields":
{
...
, "priority":{...}
}
Correspondingly the previous reply doesn't help because only a part within "priority" was modified.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, make sure the priority system field has been added to the issue screen or it will not be settable via API calls.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.