When i am creating issue from the Rest API by providing the spring number, its throwing error
{"errorMessages": [ "Number value expected as the Sprint id."],"errors": {}}
{
"fields": {
"project": {"key": "EAP"},
"summary": "bug",
"issuetype": {"name": "Bug"},
"assignee": {"name": "muh"},
"reporter": {"name": "muh"},
"priority": {"name": "Blocker"},
"customfield_11824": {"value": "test2"},
"customfield_10004": {"value": 1851}
}
}
Hello @Muhammad Ramzan_Atlassian Certified Master_,
is 10004 ID of your Sprint custom field?
If so, please, try to replace
"customfield_10004": {"value": 1851}
with
"customfield_10004": 1851
It is not clear, what do you store to the second custom field with ID 11824, but probably you will have to fix it either.
Thanks it works, other fields are custom fields they are working with the same code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot its working for me...
and if you want to use Sprint instead of customfield then also you can use it.
e.g."Sprint": 4160
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks the below statement worked for Sprint update.
issue.update(notify=False,fields={'customfield_11990':5314})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.