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']


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

0 votes
Boris Berenberg Community Champion Dec 23, 2014

Maybe try the field ID instead of the name?

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

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,167 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot