I am unable to find the appropriate API documentation to help me write ScriptRunner scripts - here's what I have so far:
As an example script, you can see that https://www.adaptavist.com/doco/display/SFJCL/How+to+use+the+Evaluate+Conditions+feature+on+Script+Listeners
shows example code
issue.issueType.name.match('^(Story)$') !=<span> </span>null
That's understandable. Here's my question:
Where would I discover that "issue" has an attribute/property/value named "issueType" ? What other attributes/properties/values does "issue" have? Where are they listed?
Where would I discover that "issueType" has the "name" property?
I'm on cloud version, and i'm used to being able to read API documentation (such as Java) that lists properties as well as methods.
I am aware of this documentation https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-group-Issues
however that doesn't comprehensively list each object's properties and they can't be inferred from the example responses. For example, looking at the "getIssue" example and IssueBean would not have revealed that "issueType" is an available attribute of "issue" object.