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

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.

https://studio.plugins.atlassian.com/wiki/display/JSUTIL/JIRA+Suite+Utilities+Workflow+Post-Functions

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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

125 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