We are using Portfolio for Jira to create a hierarchy of:
Capability -> Epic ->Story
I want to use Automation Pro for Jira, so that when an Epic is created, a custom field value from the Parent (Capability issue) is copied to the Epic. I can't see how to do this currently.
Hi Pete
I struggled with this a bit in the beginning as well - but first step is to figure out the customfield_id.
You can find your custom field id:s by browsing your project with the REST API.
https://<your project>.atlassian.net//rest/api/2/issue/<ISSUE ID>?expand=names
By utilising this on a capability issue you should be able to find the issue id:
Example: customfield_10019
Within Automation Pro you should be able to fetch the value using {{issue.parent.fields.customfield_10016}}
Perfect, thanks... I didn't realise you could use issue.parent in the JSON.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, can't get this to work even though the Automation rule reports success. I'm setting the custom field to a smart value {{issue.parent.fields.customfield_15780}} and it is still blank after the rule executes. The parent issue definitely has this value set, and is linked with the Portfolio "Parent Link" field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually - could you try this using straight up copying.
When: Issue Created
If: Issue Type equals Epic
Then: Edit issue fields "Copy Capability Issue" from Parent Issue.
And just double checking here - Is Capability Issue enabled on the Epic level as well?
Can you see anything useful in the audit log?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, the "Copy from parent" only works for sub-task issue types. I believe that must be the same for the {issue.parent....} field too. Seems to be a limitation of Automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Pete Singleton - you are correct.
A4J has a feature request to implement this: JRACLOUD-74105
The 'parent' option in 'Branched issues' only works for sub-tasks and their parent.
You could try @Scott Harwood 's solution mentioned. here :
* Trigger: Issue Transitioned
* Issue Condition: Issue is Epic & Status is in Progress
* Related Issue Branch (JQL): "key = {{issue.Parent Link}}"
** Transition Action: Copy from trigger issue
In addtion: if you have Scriptrunner available, or are willing to evaluate, you might be able to do something with the 'Parent Issue Field' or the Portfolio JQL options.
Good luck,
Edwin.
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.