Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Copy value in AssetObject type Custom Field of a Sub-Task from Parent/Trigger Issue

Sumona Dhara April 25, 2024

Hi,

I have created an Automation to Create Sub-Tasks, when status of a Parent Issue changes to In-Progress.

Though Sub-Task is getting created successfully, no error, however value for 2 fields are not populating and remains empty, even though they have value in the Parent Issue.

Now, Custom field 1 -  Asset Object (single) type,

Custom field 2 - Asset referenced Object (single) type. 

I am unable to find Custom field 1 in the dropdown to choose fields while automating  creation of the sub-task. Though able to find Custom field 2.

Thus i wrote a Json script in the Additional Fields section, as below. and also tried below alternate Jsons.

1. { "fields": { "customfield_12345": { "value": "{{issue.parent.customfield_12345.value}}"},

"customfield_12346": { "value": "{{issue.parent.customfield_12346.value}}"}

} }

2. { "fields": { "customfield_12345": { "id": "{{issue.parent.customfield_12345.id}}"},

"customfield_12346": { "id": "{{issue.parent.customfield_12346.id}}"}

} }

3. { "fields": { "customfield_12345": { "value": "{{issue.parent.customfield_12345.}}"},

"customfield_12346": { "value": "{{issue.parent.customfield_12346.}}"}

} }

4. { "fields": { "customfield_12345": { "value": "{{triggerissue.customfield_12345.}}"},

"customfield_12346": { "value": "{{triggerissue.customfield_12346.}}"}

} }

 

Any suggestion and advice would be really helpfull.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events