Hi everyone,
I need help creating an automation rule in a Jira company-managed project.
Here’s what I’m trying to achieve:
180123
, 172345
, 201298
, 327186
, 345231
, etc.).180123
or 201298
, set "Action" to update
.172345
, 327186
, or 345231
, set "Action" to configure
.The challenge I’m facing is understanding how to define a single rule condition that looks up multiple values for this field.
Any guidance or examples would be greatly appreciated!
Hi @Naveen Chauhan ,
Welcome to the community !!
You can achieve this by using "Add a Branch" --> Current issue
For "IF: Add a condition", select Issues Matches JQL
Add JQL condition as "Plugin ID" in (180123, 201298)
For Then: Add an action, select Edit issue --> select Action field and set value 'update'
Add one more branch and create same rule like above for "Plugin ID" in (72345
, 327186
, 345231
)
Your rule should look like this. Please note: I have used Epic name and Priority in my jira as an example and created for Create issue action. You can create same for Create issue, Edit issue etc.
Hi @Rilwan Ahmed , I did try that rule but I am getting this error when validating the rule
I believe the field type "text" doesnot support "in" operator
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Naveen Chauhan
What is the custom field type for "Tenable Plugin ID" ?
You can find it in https://<your domain>.atlassian.net/secure/admin/ViewCustomFields.jspa
If its a text field, then you need to make use of "~" in the search
Example JQL:
"Affected hardware[Short text]" ~ Laptop OR "Affected hardware[Short text]" ~ Pc
Mode details about text search is in https://support.atlassian.com/jira-software-cloud/docs/search-for-issues-using-the-text-field/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rilwan Ahmed ,
The problem is i have heaps of values under Plugin ID , atleast 150
using "~" in the manner as you shown above would be impractical i believe.
also i dont know whats the limit in the JQL query of additional "OR" statements
I was also thinking of creating a database with the Tenable Plugin IDs; but i dont know how to compare the values in the field from this database and set Action field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Naveen Chauhan -- Welcome to the Atlassian Community!
Your rule could use the Smart Values Condition with a regular expression to test for the different values: https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#--smart-values---condition
Also: what value should be set in the "Action" field if both conditions are met? This appears to be possible as your "Plugin ID" field is text, with no constraints on selected values.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy ,
If one of the two conditions match the Action field should set to "OS Update" and for second condition match set the field to "Configuration change"
I'll give it a go of your suggestion to use smart values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
I am unable to use the smart values created.
I was able to create a look table for the Tenable Plugin ID.
But somehow, I am unable to use in the rule
The log suggests that the automation task to create the lookup table was successful
However I cant able to locate the keys created in the table
Please see screenshots
What am. i doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why are you using a Lookup Table? That will not work for this scenario because the "Plugin ID" field may contain multiple values.
And why is your rule using a Scheduled Trigger?
An example rule using the smart values condition would be:
You will need to confirm the correct smart value for the "Plugin ID" field. Use this how-to article to do that: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
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.