I am trying to add a fix version to a particular set of Jira items via the Jira REST API. Our current version of JIRA is v5.0.2.
Community moderators have prevented the ability to post new answers.
PUT rest/api/2/issue/{key}
{
"update": {
"fixVersions" : [
{"set":
[
{"name" : "My Version"}
]
}
]
}
}
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.
Strange that add doesn't work
PUT rest/api/2/issue/{key}
{
"update": {
"fixVersions" : [
{"add":
[
{"name" : "My Version"}
]
}
]
}
}
But if you try "append" it tells you the only options that are available are add, remove, and set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correction it does work but with a different structure:
PUT rest/api/2/issue/{key}
{
"update": {
"fixVersions" : [
{"add":
{"name" : "My Version"}
}
]
}
}
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.