Am trying to get the first name of element when inserted in the Component/s field, as we found out that, when second element inserted, under the inspect element, the list gets sorted alphabetically.
For example, If first element inserted starts with alphabet M , and the second element inserted starts with A, on the GUI we will see exactly like that, but under Inspect (right click mouse), the elements get sorted, which means, the second element is now the first element, which we wrongly captured.
Any pointers will be helpful!
Hi @Kamal Iqlaas Ismail welcome on the community. I'm sorry but I'm not getting it... you need to read the values with JavaScript or REST API or what? Can you explain your need better?
Hi @Martin Bayer _MoroSystems_ s_r_o__ , appreciate the response.
Thanks for the direction as well. I need to read the first value only on the interface using the built-in ScriptRunner Script Editor in the JIRA Administration itself.
The Script Editor is using Groovy language.
Let me know if more info needed.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kamal Iqlaas Ismail I'm sorry but I do not think it is possible. After the values are saved, options are sorted.
One solution would be doable (probably). If your use case is
It could be possible to use history records on issues -> what value was the first one in the Component/s field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Martin Bayer _MoroSystems_ s_r_o__ , yes, it is sorted. Appreciate the pointer, will look into how to use the history records. Thank you, have a nice weekend!
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.