Hi everyone,
I want to tag a request with multiple tags depending on the organization, related to the request. I did manage to get it working by creating an automation, which adds the needed tags on fieldchange of organization.
My problem is: I need to do this for about 800 organizations, each needing 1-4 tags.
That would be a lot of work to do in the automaiton editor, hence the question if it is possible to edit an automation in textform or does one of you have another idea on how to accomplish the automated tagging?
Thanks!
I ended up doing it by hand, as I have to do it only once anyway.
Hi and welcome!
Do you want to give the tags based on what kind of organization you have in your current Issues or do you just want 800 Issues to get the same 4 tags?
Maybe it is possible to change the trigger of your rule to something you can change via Bulk-Change e.g.: Set a rule to trigger upon changing a field value to 1 -> Set tags depending on the organization in "customfield_id" -> trigger rule via Bulk Change of all Issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simon, thanks!
I want to give the tags based on selected the organization.
I'm not sure on what you mean by the bulk change.
Currently its the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK,
my idea was to set up a rule like this:
If "customfield" changes to 1:
Branch 1:
if field 'organization' is X, then change tags to: xxx
Branch 2:
if field 'organization' is Y, then change to: yyy
Now trigger this rule on all 800 issues via 'Bulk Change':
-Navigate to your Issues that need changing, select them in the top right corner to BulkChange and change the customfield value from None to 1 on all of them, triggering the rule.
This is a workaround I would use. I don't know if there is a possibility to Change Tags directly via BulkChange or some other Automation Rule you could use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you missunderstood me there.
I have a few hundred organizations, not issues.
And my problem is the massive amount on setting up each elseif in the automation editor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, yes I misunderstood, sorry.
I think this is not possible, since you would have to define the logic from "organization" to "tags" somewhere. You could try to iterate over your different organizations (see here https://community.atlassian.com/t5/Automation-questions/How-to-iterate-over-a-created-variable/qaq-p/2069507) but even then you would have to describe which tags to set for each "organization".
Even if you would run a script you would have to define this somewhere.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I am well aware that I need to assign the tags to the organizations in some way.
But the UI in the automation editor is not really helpful when I have to create an elseif branch for every organization by hand. Ideally I would like to copy/paste the elseif and the then part and just edit the tags/organization in plain text.
Exporting and importing the automation seems to only work when not changing the content, as the fields have unique ids...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The one thing you could try is to use the "Advanced Settings" on your rule to iterate (see above) over you custom field and try to set the labels there.
If that is not working you have to get an Addon that lets you run scripts like Scriptrunner. Unfortunately I don't know any way to use plaintext or scripts in automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I changed my approach. My new situation is the following:
I have a few hundered organizations. Each organization ends with a number.
E.g. ABC40, DEF40, GHI20 and so on.
Now I want to add organization ABC40 and DEF40 automatically when the organization MAIN40 is selected. Is there any way to do this via JQL or something similar? So I dont need to add the orgs manually, but filter for %40 for example.
Cheers!
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.