I'm wondering if any of you seasoned, professional Jira users can offer me any insight on how to accomplish this task. When items in a checkbox field have been selected within a Jira ticket, I need those values to copy to the label field within the same ticket. I've tried to use automation to achieve this goal; however, there doesn't appear to be an option to select the checkbox field as the source of the data that is being copied into the label field. This is what I am trying to set up using Automation:
I'm looking for solutions that don't involve plug-ins.
Thanks, Everyone!
Hi @Gina Ferrante ,
I used
{{issue.checkbox.value}}
where checkbox is the name of the checkbox field.
Please note, the choices in the checkbox must be whole. So "Red" but not "Dark Red".
Automation gives the following error.
The label 'dark red' can't contain spaces. (labels)
Greetings, Marco
Hi, @Marco Brundel! Thanks so much for your help! This worked! Now, I have one additional issue related to this.... Maybe you can help?? It seems that if there are multiple checkbox values selected for the checkbox field, when they copy to the label field, they copy with a comma. For example, if I have the following items selected in my checkbox field (red and blue), when they copy into the label field, they copy as red, and blue. How do I eliminate the comma from copying over?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gina Ferrante ,
I don't exactly what you mean with a comma. But labels cannot contain spaces. So in your example in the issue there are 2 labels, red and blue.
Of is there also a label with only a comma?
Maybe you can show the situation with a screendump.
greetings, Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, @Marco Brundel ! Here is an example of what I am describing...
My issue type is set up with a checkbox field named "MODULES." It's possible to select more than one option in the checkbox field. In this example, I have selected two options in the checkbox field: FMS_Expenses and FMS_General_Ledger. When I run the automation rule, the selected checkbox items copy to the Labels field; however, because there are two options selected, it copies to the Labels field with a comma after the first checkbox value selected as shown below:
I'm wondering if you might have a solution to the automation that you provided that would check for commas and then eliminate them prior to posting the value in the label field. Any help you can provide will be appreciated! :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gina Ferrante ,
I was looking at the global Labels field in my set.
I have now recreated it with a custom field of type Labels and I also see the comma appear.
Incidentally, for the example "Dark red" I get two values (without comma (?) ) in the field. But indeed by the chooses Red and Blue and Dark Red i get the labels
Dark red is the last option in the checkbox.
When I make it the first option and I choose Blue and Dark red I get
Not get a comma I have no solution for it at this moment, sorry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my fix for this problem
{{Issue.field.value.replace(" ", "_").join(" ")}}
with replace - I remove spaces in text and change it
because checkbox in jira is list, I use join (doc) and use "space" for separator
list.join(separator)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@pavel_tokar , Thanks so much for sharing your fix! I will give it a shot!
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.