Dear all,
I'm creating an automation -
1. Trigger occurs when the current issue transitions from UAT to SIT (in the project: CRBT).
2. New issue has to be created in the other project: SIT, issuetype: Test
3. Here's the catch: There's already multiple SIT's issues already linked to the current issue through the issue-link-type: 'Demand'.
Now I want to create a single SIT issue, based on the details available in the most recently linked/created SIT issue.
I've written an automation with the following steps.
1. Trigger: current issue transitions from UAT to SIT
2. Branching: For linked issues, linktype = Demand
All actions inside Branch -
3. JQL: to filter-out for all 'SIT' issues.. issues from other projects filtered-out.
4. Lookup issues: issue in LinkedIssues("{{triggerIssue.key}}") AND issueType: Test ORDER BY created Desc. This gives me all the SIT issues
5. IF: Advance compare values: {{lookupIssues.size > 0}}. inorder to filterout for most recently created SIT issue.
6. Created a new issue: SIT project, Test issuetype.
Now, when this rule is triggered, Lookup option filter-outs for all the SIT issues in the linked issues, but creates multiple new issues, one for each SIT issue brought by the lookup action.
Looks like the condition number 5 fails to filterout for only the last created SIT issue.
Can someone advise how this condition be modified to list only for the last created issue.
