I've been working on populating a custom field by converting the text box into drop down by referring to
I was able to narrow down the desired list. However, when I choose the list from the drop down, summary of the selected value is not populated where we could see only the key for the selected value. Eg: If I selected ABC21 - Test from the drop down, then only ABC21 is populated in the custom field. I've been using JQL query to fetch the resultant set in the drop down.
Can anyone help in populating the field along with the summary.
Hi @Peter-Dave Sheehan ,
Yes, the default behavior displays as you provided in the screenshot. But when I click on update the task number will be updated only as JSP-3. The summary is not updated.
I've used the below code for retrieval of lists.
url : getBaseUrl() + "/rest/scriptrunner-jira/latest/issue/picker",
query: true, // keep going back to the sever for each keystroke
// this information is passed to the server with each keystroke
currentJql : ajaxQueryString + ajaxQueryString2,
label : "Products: "+productNames,
max : 100,
css: "max-width: 500px; width: 500px",
Ah, I see. You are right.
The view screen only shows the Issue Key. And when you open the edit screen again, the dropdown shows only the issue key.
This is not surprising because the database only stores the key in that text field.
I think that's how it's designed to work.
You could make a feature request/suggestion with Adaptavist to have that default behavior changed.
The best I can offer as a suggestion is to have a different behavior script that looks for an existing value and then puts the summary for the linked issue in the field's description (below the dropdown).
This won't help with the view screen. The only workaround would be to have a scripted field that loads the linked issue details and display the issue key and summary. You would hide your linked issue field and display this calculated field on the view screen.
I hope this helps.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events