Hi,
I have an requirement where i wanted to copy Select List Single choice custom field options/ values to Asset type custom field. How can this be possible can anyone share perfect script for this?
Hello @Aravind Koushik Gobburu ,
Good day, Welcome to Atlassian Community!!
Please see below
Create an Automation Rule
Set your trigger (e.g., issue created or updated).
Edit Issue Action
Add an Edit Issue action.
Select your Assets object field to update.
Use AQL with Smart Value
In the Assets field, use an AQL like:
objectType = "<AssetType>" AND Name = "{{issue.<select_list_field>}}"
Replace <AssetType>
with your asset type.
Replace <select_list_field>
with the smart value for your single select list field.
This will set the Assets field to the object whose Name matches the selected option in your single select list.
It mentions text but will work for the select list if you follow the steps. If you face any issue please let me know
I see it is for Server/DC above was specific to jira Cloud, for Server/DC please check
https://confluence.atlassian.com/jirakb/creating-and-linking-an-asset-object-using-automation-for-jira-via-rest-api-1387597133.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.