Hi all,
We want a custom field of type Select List called "Hot Potato". The idea is:
Admittedly we could move the ticket from Team A's JIRA project to Team B's JIRA project but in the past that's resulted in tickets being lost in the system because the ticket languishes on Team B's board.
In addition, by setting this custom field, both Team A and Team B can use Quick Filters and Swimlanes to track these Hot Potato issues – both from Team A's perspective (what have we delegated to others) and Team B's perspective (what have others delegated to us)
This Hot Potato field MUST be optional because if it's required, the JIRA / Crucible integration doesn't work nicely; a required Select List prevents Crucible from creating subtasks in JIRA within Crucible reviews (it breaks the link API and generated sub-tasks end up without a parent ticket). This is a known Crucible/JIRA integration issue.
But by making Hot Potato optional, then if the Hot Potato value is empty, the Hot Potato field is not displayed in Issue View. This is a known JIRA limitation.
We want the Hot Potato custom Select List field to be not only displayed and changeable in Issue View if it has a value (which it does out of the box already), but also displayed and changeable in Issue View if it's empty (show "None" in this situation).
In addition, Hot Potato should be searchable like any other custom Select list field in Issue Navigator; start typing "Hot Potato =" and a suggested list of options displays below it.
Here's the question:
How do we create such a field?
Is this something we can do in ScriptRunner?
Or are we creating a custom plugin which extends the SelectList class, something along the lines of this: https://developer.atlassian.com/jiradev/jira-platform/fields/tutorial-custom-fields-in-JIRA or https://developer.atlassian.com/jiradev/jira-platform/fields/tutorial-creating-a-custom-field-type
Thanks in advance for your help,
PS: in case anyone was considering offering it as a suggestion, removing "None" from all Select Lists is not an option.
PS#2: Could we simply modify one of the .vm files, such as:./atlassian-jira/WEB-INF/classes/templates/plugins/fields/view/view-select.vm ?
That file has the following code:
#disable_html_escaping()
#if ($value)
$cfValueEncoder.encodeForHtml($!value.toString())
Could we modify it to something along the lines of...
#disable_html_escaping()
#if ($value)
$cfValueEncoder.encodeForHtml($!value.toString())
#else
$cfValueEncoder.encodeForHtml("None")
?????
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't need to @mention me, that just makes me get two emails every time you do it. As I said, I don't have time to help with this one - the question is too long and involved. You could consider getting someone to do it for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jamie Echlin [Adaptavist] so is this editable & searchable custom field able to be created by ScriptRunner? Or must I create a custom plugin?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Read it, sorry don't have anything to add here.
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.
@Jamie Echlin (Adaptavist) ? @Nic Brough [Adaptavist] ?
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.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.