How to add a parent custom field entry to the name of a sub-task that was created via a transition

In my workflow — i have a transition that creates a sub-task and sets the sub-task summary to the same as the issue's summary plus an extra sumptin' sumptin'

like this:

issue.summary = transientVars["issue"].summary + ' - PowerPoint '

Works beautifully ...but now ..I want to add the value of a parent's custom field to the summary. The custom field is a date field (it is called "Presentation Date" and the field id is 12839)

I have tried the following to no avail:

issue.summary = transientVars["issue"].summary + ' - PowerPoint - ' + transientVars["issue"].cfValues['Presentation Date']

and

issue.summary = transientVars["issue"].summary + ' - PowerPoint - ' + transientVars["issue"].cfValues['customfield_12839']

I was pretty much grasping at straws when I tried those ---any one have any suggestions ?

thanks in advance - Derek

2 answers

This widget could not be displayed.
Boris Berenberg Community Champion Dec 23, 2014

Maybe try the field ID instead of the name?

This widget could not be displayed.

Thanks Boris - i did try that ---i updated my above example to include that.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

275 views 1 3
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