Hi Hamid,
It took a while but I just found the time to give it a try on my test instance. The approvers of an issue are stored in a custom field thus updating that custom field would be the solution.
I was able to update the field by executing the following API call;
PUT /rest/api/latest/issue/ISSUEKEY-1
{
"fields": {
"customfield_10206": [
{
"name":"mcautreels"
},{
"name":"shane.soukup"
}
]
}
}
BUT there's one important thing to make sure. The customfield ID (in my case: 10206) can be different on each instance.
Finding the right id can be done following the knowledge base article: How to find id for custom field(s)?
Hope this helps,
Maarten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.