Workflow post-function on Create to populate Epic fields based upon their Parent (Initiative issue)


I have created a post-function in my JIRA workflow (create transition) which populates the component field of a Story based upon the component field of the linked Epic (using the JMWE add-on Copy field value to linked issues" post-function:

With increased use of JIRA Portfolio, we now have teams using Initiatives (top level issue type based on portfolio hierarchy) which are associated to Epics via the Parent Link field.  However, this is not a standard link type that is referenced in the configurable options of the JMWE post-function I list above.  We want to have similar functionality - Epic component populated with Initiative component at "create".

Has anyone else been able to implement something like this?  And if so, how did you associate the Epic to its Parent.

Thanks in advance.


1 answer

This widget could not be displayed.

In case anyone else stumbles across this. 

With assistance from Innovalog, I was able to implement this functionality using the 'Set Field Value' post-function to set the components field of my Epic at create using this Groovy Script:

if (issue.get("Parent Link") != null)
  return com.atlassian.jira.component.ComponentAccessor.issueManager.getIssueObject(issue.get("Parent Link").key).getComponentObjects()

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

124 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you