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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

784 views 2 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