Automation for Jira & Tempo Account - Required vs Not Required on Sub-task

Lewis Cook June 19, 2019

I've setup a simple automation rule using Automation for Jira to create two sub-tasks when a new defect is created.

This initially failed in the target project with the following error:

"Create issue

Error creating issueAccount is required. (customfield_14040)"

Having extended the rule to be in my test project and made some tweaks etc it eventually worked as it was originally setup. Upon investigation the difference was that account wasn't in face required in the test project for Sub-tasks. However - the account field is filled out by default via the standard "inherit from parent" which appears to be the default setting for sub-tasks.

I don't want to change the field config for the original target project as account is indeed a required field, however am unable to get the JSON working correctly to set the account field on the new sub-task based on the parent issues account field using the following:

{"fields": {

                  "Account": {{triggerIssue.account}}

           }

}

I have managed to get similar JSON working but when setting a specific Account rather than trying to link to the trigger issue.

Any help greatly appreciated!

1 answer

0 votes
andreas
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.
June 19, 2019

Hi Lewis,

 

Is this the Tempo Account field?  If you're running the latest version of Automation for Jira, then you should be able to just add that field using the simple form (Click on "Choose fields to set...") and hit the '...' menu. Then you should be able to select 'Copy from trigger issue'.

Hope that helps!

Cheers,
Andreas

Lewis Cook June 20, 2019

It is, our Jira instance does need an update generally so i'll expedite that,

Bhekinhlanhla Siza Mbatha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2024

Hi, did you finally manage to find a solution to this? 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events