Hi, with the new changes to the parent field. I do not see any documentation to update (also remove) the parent linked to an issue. Is this possible via the API if not how do we do this as I am getting unexpected results from the API? is /rest/api/latest/issue the right endpoint? I have tried setting this field's value to null but that doesn't work
Hello @N_O
The Edit Issue endpoint is working just fine for me.
To change a particular Story's parent Epic, I send the following request:
PUT https://{Instance}.atlassian.net/rest/api/3/issue/KEY-123
with the following request body:
{
"fields": {
"parent": {
"key": "KEY-234"
}
}
}
then that Story gets a different parent Epic.
If I set the parent field to null:
{
"fields": {
"parent": {
"key": null
}
}
}
then that Story has no Epic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried { "update": { "parent": [ { "set": { "key": "parent_issue_key" } } ] } }
or
{ "update": { "parent": [ { "add": { "key": "parent_issue_key" } } ] } }
they both don't work.
I am doing it in Microsoft Power Automate calling Rest API Edit issue V2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @DaYuan Tan
Can I update/add?
No. Updating / adding is for other field types that can accept multiple actions / values via multiple sets or adds inside an array[ ] in the JSON body.
For the parent field, it can accept only a single value, so you need to declare the value for the key, exactly as I've shown in my example.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sunny Ape Thank you
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.
Hi @Sunny Ape I am facing a similar issue so we have a job for creating JIRA tickets earlier it was linked to epic id now I would like to link it with parent id
Here is the previous request
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.