Hi,
Say I generated a smart value list from a JQL ListOfNames which is {{lookupissues.MyNames.distinct}}.
How can I now iterate over this list using a smart value SomeName and use that value each time in a JQL query?
Thanks
What I'm trying to achieve is as follows:
Say I have open tickets that can be related to CARs. Cars is a Custom field and I have different models.
I would like automation to run a JQL of all the open tickets.
Go through the lookup list and pickup all the distinct car models in open tickets.
Then loop over the list of distinct models.
For each:
Does that make it clearer?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Dd
I was able to get something to work!
The general configuration looks like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This looks awesome. I'll try it!
Question though - I assume (based on what you wrote) that there's a way to see the actual output of a smart value. Where can I read how to do that?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm probably doing something wrong as my JQL fails
I probably don't use the smart values properly.
I'll try Sunday, and if it fails - I'll upload my attempt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm doing something wrong. To be honest, I'm not sure what cars refers to in your example.
In any case, below is a snapshot of what I wrote
I also had a version with a JQL
th don't work (the JQL won't even be verified).
Obviously I'm doing something wrong :-(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Cars" was just a custom field I created to have the different car models!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the value in your smart value {{failedBranch}}?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add a new action of the type "Log Action". Add the smart value in there and rerun your rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is expected! You need to go into the audit log and see what was logged.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, that won't do anything. Can you share a screenshot of the branching you are trying to do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do get a failure later on
Custom Smart Value JQL Search: "("Failed in Branch[Dropdown]" in ()) AND (project in (10002))" - Error in JQL Query: Expecting either a value, list or function but got ')'. You must surround ')' in quotation marks to use it as a value. (line 1, character 35)
in () looks like the {{FailedBranch}} is empty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the actual field called "Failed in Branch[Dropdown]"? Or is Dropdown the type?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dropdown is indeed the type but that's the way it appears in the JQL.
I have it in an initial JQL and it works fine with that Dropdown
At the start I'm executing "Failed in Branch[Dropdown]" is not EMPTY and I get the correct lookup list
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Get rid of it in the smart value. Try it like this -
{{lookupIssues.Failed in Branch.value.join(",").remove("[").remove("]").replace(", ",",").split(",").distinct}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So now I get the correct list in FailedBranch. (BRANCH_2)
How do I loop over the values in FailedBranch and for each run the JQL filtered to that value and then check the size?
Doesn't seem like "Failed in Branch[Dropdown]" in ({{FailedBranch}}) does the trick
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.
Once you resolved the issue of getting the log action to work, I could see the actual parameter extracted from the list. Then it was clear I was missing quotation marks on the value when filtering since I had a space in it.
Now it works perfect!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'll ask one last semi-related question - when I send the email - is there a way to send the issues from the lookupissues list as hyperlinks and not just ticket keys?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Put this in the body of the email:
{{#lookupIssues}}
{{url}}
{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.