Forums

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

select list with option other

Siraj Berry October 18, 2020

I added an option "other" to the select custom field on issue creation.

when the user chooses option "other", I need an input field that shows up below the previous one where the user can enter his option

 

the problem is that I am not finding it in a suitable code for jira cloud

I need the same case or code of the following link but something that works for jira cloud

https://scriptrunner.adaptavist.com/5.2.0/jira/recipes/behaviours/select-list-other.html

 

HELP PLEASE

1 answer

0 votes
Nic Brough -Adaptavist-
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.
October 18, 2020

Cloud does not have any function that would do this, nor does it allow for apps to do it (Cloud does not support the functions that Behaviours injects, otherwise we would have written Behaviours for Cloud into SR for Cloud a long time ago.)

Siraj Berry October 18, 2020

what do u suggest in this case? and by behavior you mean inserting html scripts?

Nic Brough -Adaptavist-
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.
October 18, 2020

Sorry, yes, Behaviours is a function built into the Scriptrunner for Jira Server app - that (sort of) injects scripts into Jira pages that do things with fields.

You cannot do that on Cloud, the framework does not allow for the code to be added.

In your case, your only real option is to find an app that provides fields that can work together this way or write one (I am not aware of any currently on the marketplace)

Siraj Berry October 18, 2020

after I did my research I guess I can add the behavior using script fragments in script runner on the cloud, but I still dont know how it works(what to put in the URL field). anyway thought to share this with the ones who are reading this post

Suggest an answer

Log in or Sign up to answer