Hi,
We have Jira 8.20.x DataCenter. In the workflow, I have already set a post function that:
When certain Request Types arrive in Queue, Jira
Automatically assigns those issues to (User A).
Now that these issues are assigned to (User A), we want to automatically add a label to all of these issues that says "WORKEXAMPLE"
I am new to Jira and was unable to do it with triggers, so I tried in autmation and it would not allow me to customize the options needed. Someone recommended Scriptrunner but I am new to it as well.
We currently have Automation and Scriptrunner Apps available to us :)
Can anyone possibly help?
Hi @Channing and @habib rahman -
This is all you need:
If you do not see the fields for editing, they are configured here:
By adding this automation, the previous labels would be overwritten? I need this feature but not removing the previous labels, but only adding a new one such as "reviewed"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Raphael Fernandes --
The Labels field has a handy ADDREMOVE option that lets you do exactly what you want:
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.
For the Labels fields, if you click the [...] and choose ADDREMOVE, you should see two fields: Values to add, and Values to remove, as in this this image from @Trudy Claspill's post:
Are you seeing that? And you're only putting labels you want to add under Values to add?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Huh, that's odd. Are there any other Edit operations in your rule? If you can share a screenshot of your rule, we would be able to see if there's anything that looks awry.
But without that, I would look at a few things:
Issue history - is it showing just a single entry like:
Automation for Jira updated the Labels March 7, 2023 at 4:06 PM HISTORY
Old Labels -> New Labels
Or I'm wondering if two updates might happen:
Automation for Jira updated the Labels March 7, 2023 at 4:06 PM HISTORY
Old Labels -> None
Automation for Jira updated the Labels March 7, 2023 at 4:06 PM HISTORY
None -> New Labels
Audit log - does the audit log show more than one edit/update happening?
Also, you might try just adding some Log actions for debugging, printing the value of {{issue.labels}} at various points during the rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.