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

0 vote
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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

59 views 0 5
Read article

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