Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy the value of custom optional field into tasks with Automation?

Peter Ebraert November 19, 2018

Hello,

We are running the cloud version of Jira, and have the Tempo plugin and the Automation for Jira plugin.

I use the following JSON to copy the value of the Account field (a custom field introduced by the Tempo plugin), from an Epic to all underlying tasks upon a change on the epic

{
"fields": {
"Account": "{{issue.epic.fields.Account.id}}"
}}

The Account field, is an optinal field on the Epic. Consequently, I do not always get a value back (making the automation rule crash from time to time).
Does anyone know how to deal with a copy of optional elements?

1 answer

0 votes
Deleted user November 21, 2018

Hey here Peter,

The best way is to add a Condition before the Edit action to check that the value for whatever you're setting it to exists / is not equal to blank

That way, the rule won't try to edit if the value is not there

Cheers,

Mark C

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events