Hi, I'm starting to use Scriptrunner and I need to know how can I find out the list of fields (the name) associated with an issue, both standard fields and custom fields.
I need to use it in a post function of a workflow.
Thanks
Hi Orenis,
I can confirm that the best way to see what fieds are stored on an issue with ScriptRunner for Jira Cloud is to navigate to the Script Console and to click on the link named Get Issue Fields in the Examples section below the code box.
This will then populate a sample script which you can configure by specifying an issue key and then you can run this script and it will give you a JSON representation of the Issue showing what fields exist on the issue and how the data is stored in these fields.
Using this information it will allow you to see how you can access the values from fields to help you when writing the scripts that you require.
I hope this information helps.
Regards,
Kristian
Thank you very much Kristian, it worked.
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.