Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the parent link on an Epic?

Julia
Contributor
March 18, 2022

I have an automation rule where I want to set the parent link of an Epic to an Initiative. 

 

What smart value do I use to set that in the additional fields section? This is what I am trying currently with no luck.

{
"fields": {
"Parent Link": {"key" : "PT-16747"}
}
}

4 answers

1 accepted

2 votes
Answer accepted
Andrew Wolpers March 18, 2022

Hey Julia :) 

As @Stefan Salzl alluded to, the Json needs to be built out a bit more. Something like this should work:

{
    "update" : {
        "customfield_<parentLink Field ID>" : [{"set" : "PT-16747"}]
    }
}
0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2022

Hi @Julia 

I recommend first confirming the name of the field/smart value to use.  Find an example epic linked to an initiative, and then use this how-to article to confirm the smart value: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

My understanding is the smart value name is parent, not parent link.

Then take a look at the examples here to confirm the way to set the link for the relevant field type: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

Kind regards,
Bill

Julia
Contributor
March 18, 2022

I am in Jira Server, not cloud. 

0 votes
Stefan Salzl
Community Champion
March 18, 2022

hi @Julia ,

tbh: I‘m not proficient with advanced roadmaps and I dunno smart values by heart. I would recommend to have a look at the JSON of the issue (see the link below) to see the exact name of the field.

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Best
Stefan

0 votes
Julia
Contributor
March 18, 2022

This also does not work:

{
"fields": {
"Parent Link": "PT-16747"
}
}

Suggest an answer

Log in or Sign up to answer