Forums

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

Apply 'select list conversion' Behaviour to field in Structure

Richard Lucas
Contributor
November 6, 2019

I've created a Behavior that transforms a text field in to dropdown list search field. That data comes from an external REST service via a Scriptrunner REST endpoint.

https://scriptrunner.adaptavist.com/5.0.3/jira/behaviours-conversions.html

I thought that was 'job done' and got back to my day job. However, pesky users have said that the field still appears as simple text field when they update it from Structure, and that it doesn't allow them to search. 

Is it possible to apply a Behaviour to a field that appears in Structure?

Or I could use another ScriptRunner function to periodically add new items to a Single Select?

 

2 answers

1 accepted

1 vote
Answer accepted
PD Sheehan
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 6, 2019

No, behaviours only work on main jira screens.

Structure and bulk change from the navigator won't run the logic.

But searching should be possible. The data is stored as free text. Bust you can change the searcher to "Exact Txt searcher" if you want to be able to have individual values indexed (and available in JQL autocomplete.

If editing via structure is a hard requirement, then yes, the alternative if to have your single select context programmatically updated.

Richard Lucas
Contributor
November 6, 2019

Thank you Peter, you've confirmed my thoughts. 

Ok, I'll workout the code for the OptionsManager.

0 votes
Mario O.G
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 6, 2019

Hi Richard,

If you wish, we'd be happy to take a closer look at your configuration and investigate the case further.

You can open a support ticket with our team by clicking here.

We will be glad to help!

Best Regards,

[ALM Works]
Mario O.G

Suggest an answer

Log in or Sign up to answer