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

Derek Galvin December 23, 2014

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

0 votes
Derek Galvin December 23, 2014

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

0 votes
Boris Berenberg
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.
December 23, 2014

Maybe try the field ID instead of the name?

Suggest an answer

Log in or Sign up to answer