Hi Team,
My Quetion is ' script runner" which template to choose for "Drop down" field , I could not found any option for "Dropdown" list feild or "SelectList" field type?
How to pass a text filed values to drop down using script runner in JIRA server.
We have a text feild with versions values but need to convert this to a Dropdwon list and show on JIRA ticket. "All Old versions" is a text filed currently, is has info like below, this info I want to show in a dropw down instead of this text, I have used "script runner" field and the template as "Text filed- (multi line)" as shown in the below screen.
Scrtiprunner scripted fields do not have a "select list" template, because they won't contain options. The options in a select list are an a Jira object in their own right, and the point of a select list is that people get to choose them. The point of a scripted field is that people do not get to choose them.
You can do what you need, but not with a scripted field. If you create a select list and add all your options to it (you could even use a multi-version picker list, that looks like it might be better for you), then you could not put it on create and edit screens (so the users can't edit it) and have a listener script that populates it automatically. You'll get all the functions of a multi-select list that way.
Thank you so much @Nic Brough -Adaptavist-
My requirement is to build a SingleSelect dropdown list only. So could it possible make it with Listener script?
If you have any sample Listener script for dropdown list, please share it with me.
Thank you,
Dev G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not directly, but you can easily combine the right field type from the "how to handle fields" script with a listener script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much for the reply.
Actaul my requirement is, from a shared path need to read a list of files names and deiplay on JIRA ticket as single selectLsit(dropdownlsit where only one vlaue we have to select )
Hint: This files names are nothing but Buidl verisons like 10.2.3.4, 10.45.23.5. 10.89.23.67.... ets. These values needs to be display in a dropwdownlist, so that user can select any buildversion fform the lsit and do a deployement process from JIRA ticket.
Above you have replied ( combine the right field type from the "how to handle fields" script with a listener script) doesn't satify my requirement .
So could you please more clear guidlenes to this I am expecting.
Thank you,
Dev G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You had not told us anything about the source of your options for this list, so there's no way we could have told you anything about that.
The question now becomes "how are you currently storing the list of these files in Jira?"
If you're not actually storing it, then you will need to code something that can scan the directory for the files in it, and add a new option every time a new file arrives
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.