Automation rule doesn't assign any values to the Asset object custom field when triggered by the schedule
プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。
For Jira DC, the Branch on AQL is still not available: JIRAAUTOSERVER-544 - Insights Automation: Automation "Branch Rule" for Insight IQL results - Jira DC
要約
A4J (Automation for Jira) rule does not assign any values to the Assets object field when triggered by the schedule.
診断
When A4J is triggered by the schedule and creates a new issue, it cannot assign values to the Asset objects.
See the example below:
The Asset custom field in this example is an Asset object custom field.
The new issue is created with an empty Asset custom field.
原因
The trigger for the A4J rule to assign value to the Assets object custom fields needs to be an issue or an object. The scheduled trigger does not meet these criteria.
ソリューション
Create a Global A4J rule with a Branch on AQL and trigger issue creation inside the branch.
次の例をご確認ください。
- The {{object}} refers to the current object Asset object of the AQL branch.
- If the AQL query returns several records, the rule will create several issues.
Please note that adding the Assets Object to its field at issue creation may not function due to a know Bug. See JSDCLOUD-10421 for a proposed workaround with the Edit Issue action.
After the Global A4J rule execution, the new issue is created with the filled Asset custom field.