Configure 'Labels’ field to point to ‘Fix Version/s’ field by default

Hi, I'm using Jira 4.3 version.

Is there an configuration to point 'Labels’ field to point to ‘Fix Version/s’ field by default.

For e.g. if 'Fix Version/s' value is entered as '1.1', the 'Labels' value should automatically show '1.1' .

Can this be accomplished ?

Thanks in advance.

2 answers

1 accepted

0 votes
Accepted answer

Use JIRA Suite utilities plugin and copy the value from FixVersion to Labels in a post function (Copy Value From Other) in "Create Issue" transition (if you are collecting fixVersion during issue creation) and also in all transitions that changes the FixVersion. And remove FixVersion from the edit screen.

I have not tested it, it may work.

I'm not sure that'll work - I think the Jira suite utilities can only copy between fields of the same broad type (text -> text, date -> date etc). In this case, you'll be copying Version -> Label.

I do have one reservation about it as well - version names can have spaces in them. Labels can't. So I have a horrid feeling that you'll need code even if the JSU works, because the JSU copying "Our Fix 12.3" will create labels "our", "fix" and "12.3" and you need to code for renaming it to "our_fix_12.3" or something.

Still can't hurt to try it though.

You are right, it a weird mix. Script runner will be the best option to have better control.

0 votes

You need to find or write a listener that will pick up any events that are fired by changes to the issue, reads the event for the change of version, and duplicates the version information into the labels field.

If you need to write one (I'm pretty sure you do, I'm not aware of a plugin that provides this already), then it may be worth installing the "Jira script runner" and using that to do it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,087 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you