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

Set a Custom Field (Assets object) using Jira automation

Scott Bickerton March 28, 2024

We have a custom field (in this example - "Related Control") which is configured to link to a Jira Assets object, but would like to set the value in certain automations.

For example, suppose we have a Request type which always relates to a Cryptography control, we would like to set this automatically when a request is raised.

The field works fine when setting manually - it is configured to link to a particular schema, and when manually editing a ticket it is possible to select multiple values, as expected.

Screenshot 2024-03-28 at 12.01.04.png

When using automation, I can retrieve the attributes of Assets objects using AQL, and use these in further automation, but I am unable to set the custom field to the Assets object.

When using the "Edit Issue Fields" action, selecting the "Related Control" field in my example prompts for AQL:

Screenshot 2024-03-28 at 12.05.31.png

When clicking on "Validate Syntax", the following pop-up appears, regardless of the AQL entered:

Screenshot 2024-03-28 at 11.43.07.png

I have tested using multiple AQL queries, but get the same error. I am, however able to retrieve the object values using the same AQL in a "Lookup Objects" action.

I have checked the custom field configuration, and I am searching on attributes which are searchable

Screenshot 2024-03-28 at 12.11.49.png

Has anyone else experienced this issue, or have any suggestions of another method to automate the population of the custom field with the appropriate Assets object.

1 answer

1 vote
KL Foong March 31, 2024

Hi @Scott Bickerton 

The validate function has a bug Assets Automation: Validate Syntax for Object Attributes in Automation is failing 

If the AQL in a "Lookup Objects" action works fine, it can be used in Edit Issue action without validation.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events