ScriptRunner Select List Converter - How to Display Issue Summary as Opposed to Issue Id

Hello Community,

I came across an article in ScriptRunner on how to convert a text field into a multi-select field by using Behaviours and Ajax. This is the article.

Followed instructions and it works nicely. What I would like to do, and I have not figured this out is: I want to display the summary of the issue I select and not the issue id when user saves their selection.

My code is:

ajaxOptions: [

url : getBaseUrl() + "/rest/scriptrunner-jira/latest/issue/picker",  

query: true,

data: [ currentJql : "issuetype = custome Issue Type",

label : "Pick high priority issue in Support project",

showSubTasks: false,

 max : 100,

],

formatResponse: "issue"

]

 

In the docs it says that i can change formatResponse to "general" if I am not passing an issue, when i try doing that for this it doesnt work.

What I want to do is return an issue but display only the summary of the issue as opposed to the key of the issue.

Does anyone know how this can be achieved?

Thank you!

-Roberto

 

 

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,197 views 6 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot