Forums

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

Is it possible to have a custom field of "Sprint" type?

Pete Singleton
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.
November 27, 2019

To track which Sprint that defects were raised in, we'd like to have a second "Sprint" field, called something like "Raised in Sprint", which works in much the same way as the system Sprint field, or as a drop-down of available Sprint values.  

Is this possible using ScriptRunner, JMCF, or another addon?

1 answer

0 votes
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.
November 27, 2019

Not as you describe, no.  You could use a custom field to hold and show a "raised in sprint" (and you could use scriptrunner to populate it when issues are created during the sprint), but it's never going to work like the sprint field.

Pete Singleton
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.
November 27, 2019

Thanks Nic, what I'd really like is to populate a drop-down with sprint values, is that not possible? We can't rely on sprint dates unfortunately as we have parallel sprints running across teams.

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.
November 27, 2019

Yes, if you have ScriptRunner (I'm not sure the other scripting apps could do this)

I do not know if the best design would work.  Ideally, you'd write a Listener that could spot when new sprints are started, grant itself admin rights temporarily for itself, and adds the name of the sprint as an option in a select or multiselect list.  The reason I hesitate is that I do not know if there is a "sprint created" event fired when it is done.

So, the second option would be a service that runs regularly, doing the same, but searching for newly created sprints rather than listening for an event.

Either way, I'd also think about having something that could disable sprint-options after you don't need them any more, as the list could get long and unwieldy.

Pete Singleton
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.
November 28, 2019

Thanks Nic, we do have ScriptRunner - I was hoping there'd be a simple function to get a list of active sprints.  I'll look into the Listener suggestion, thanks.

Suggest an answer

Log in or Sign up to answer