Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

All versions custom field?

Timothy Harris
Contributor
February 13, 2017

Say you have a need for a single or multi select custom filed which contains version from all projects.

 

Does anyone know of any existing plugins? If not. What would be the best approach? 

Would this require a new custom field plugin if nothing exists in the market place? Last I checked script runner scripted fields were read only. 

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2017

You are going to need a new custom field add-on.  It's going to be complex to write too, unless you drop the idea that the items in it are "versions".  Versions belong to projects, so the code in JIRA connects them a lot.  If your field were to contain proper version objects, it won't work on issues because the issue is part of a project that many of the options are not.

It might be better to simplify it.  Create a simple custom field with standard options.  Then write a listener that listens for version events (create, update, delete), so that when a version is added, it copies the name of the version (and project?) into the new custom field.  You'll want code for version renames, deletes, archives and so-on.

Timothy Harris
Contributor
February 13, 2017

Hi @Nic Brough,

 

Thanks for the input. Kinda figured it would be a bit of a pain. sigh...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events