Hi,
I'm trying to update one of the issue fields through "advanced" option in JIRA automation rule of "edit issue" (Since this field is not coming as a default in the list of fields which I can edit like team name etc, hence I have to take the advance option)
My task is :
Update the custom field A to "Industry" AND custom field B to "Industry" for all the issues in project "GAG"
Thank You
What does your rule look like now? It'd be good to see what your current advanced update option looks like, so we can help suggest changes to make it work.
It'd also be good to know why the custom fields are not visible in the normal, simple list. Can you clarify...
Ste
Hello @Ste Wright
My requirement is to update these two custom fields to value = "Indudstry" for all the new issues and existing ones.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've created the whole rule below, as two options:
Note: I've used the custom field IDs in the advanced settings, rather than the name. This helps protect the fields in future from duplicates, etc.
---
Option 1
{
"fields": {
"customfield_10123": {"value": "Industry"}
}
}
Notes:
---
Option 2
{
"fields": {
"customfield_10456": [{ "value" : "Option 1"}],
"customfield_10123": {"value": "Option 1"}
}
}
Notes:
---
These should work for newly created Issues.
For "existing Issues" - I'd recommend just using bulk change (bulk edit) as it's a one-off, rather than using an automation rule. See instructions on how to do this on this help page
You could use Automation if you wanted to though - for example, use the Trigger to "Scheduled" instead, and use these settings...
Then, publish the rule. You can then press "Run rule" to immediately run it and updated all relevant issues.
I'd recommend creating a separate rule for this - as you could then deactivate/delete the rule after it has run. It should not be needed again due to the Issue Created rule adding the field values for all future issues.
---
Let us know if this works for you!
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding to Stephen's answer...
If you find the conditions are still failing in your rule after the Issue Created trigger, that can happen because the rule fires too quickly. The fix for that is to add a Re-fetch Issue action immediately after the trigger. That will slow down the rule and reload the data before processing continues.
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 @vyanktesh_chandely :
Could you please, let us know what type error are you getting through automation?
Regards,
Mahesh Shinde
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Manish,
There's no error. The query I am using is :
1- Issue Created (Trigger)
2 - When Project = GAG (Condition)
3 - Action
{
"fields": {
"Verticals": "Studio & Industry"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @vyanktesh_chandely :
Thanks for the reply.
Could you please show me the automation rules log? if there is failed log, then please share here.
Regards,
Mahesh Shinde
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Mahesh Shinde for the prompt response.
Sharing the audit log error :
"Specify the value for Verticals in an array (Verticals)"
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.