Hello, experts!
I want to create the following Cloud Jira Rule:
Context:
We use Jira Components as GitLab Repositories' names. It helps us to collect all Repositores that need to be Deployed to Prod in this Fix Version.
Usually, I go to the issue navigator and manually collect all components then inform DevOps, but it leads to risks of human error and duplicates.
Spend 3 hours playing with Smart Values and Lookup table, but unfortunately failed even with ChatGPT.
Hello @Arseni Vasilevski
Welcome to the community. I am guessing you know how to do until step 4, that is lookup issues based on fix version of the issue of manual trigger.
So once you have lookupIssues, you create a variable (myvar) then you can assign it all the components found in lookup like below:
{{#lookupIssues}}{{#components}}{{name}}; {{/}}{{/}}
This variable (myvar) is a text, you need to split it and convert to list and do a distinct like below:
{{myvar.split("; ").distinct}}
So, after lookup Action, you can do
Hope it helps.
@Kalyan Sattaluri
That is amazing, you inspired me to help others. Thanks!
No duplicates and works perfectly!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got most of the way there - I just haven't found a method to de-duplicate yet. But I did get the components to post into a comment.
I've assumed there's only one Fix Version on the trigger issue.
---
---
Did you find a method to de-duplicate by chance?
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.