Forums

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

How do I know the custom fields that are available to Scriprunner?

Deleted user March 5, 2021

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

 

1 answer

1 accepted

0 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
March 5, 2021

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

Deleted user March 5, 2021

Thank you very much Kristian, it worked.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events