Hi,
I found that you could convert text fields to select lists using scriptrunner's behaviours on this url: https://scriptrunner.adaptavist.com/latest/jira/behaviours-conversions.html
In the last example, they have created a project picker and an issue picker. The issue picker is explained before, however I can't seem to wrap my head around the project picker.
Is there an existing rest URL like for issue pickers that I can use? Or do I have to go through the pain of creating an end restpoint (never done that before)
Thanks in advance!
Kind regards
There is a customfield type included in Jira of type Project Picker.
I'm stupid for not checking that... Thanks! :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please no worries, it's not mentioned in scriptrunner documentation and it's quite obscure imo. When I was a consultant no one I worked with had ever used it before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Steven F Behnke Hi Steve. Is there a way to convert the Project Picker into a multi-select?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, not that I am aware of. This means you should either create a Plugin custom field that provides this implementation or you use scriptrunner. A Scriptrunner Script REST endpoint and a Behavior to convert the field should work fine. This is more or less documented on Behaviors Conversions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Steven F Behnke - Is there a solution for typeahead project picker single select? (If you have 500 projects, that list gets very long).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nothing specifically. There is general approaches.
If the page loading is slow due to the amount, then you need to write your own plugin field.
If you just want typeahead, you can either use Javascript added to the site or a Script runner behavior. Either way, both approaches are effectively calling $("my field").auiSelect2(), but you might need to adjust instead of blindly converting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.