Dear all,
I am using Script runner under Jira Cloud on which I need to convert Script Runner Script from our server side .
From our initial script we are checking different field like:
- issue IssueType
- issue assignee
- issue assignee DisplayName :
Actually I am retrieving for instance the information as below :
// Fetch the issue object from the key
def issue = get("/rest/api/2/issue/${issueKey}")
.header('Content-Type', 'application/json')
.asObject(Map)
.body
// Get all the fields from the issue as a Map
def fields = issue.fields as Map
def issueType=fields.issuetype as Map
def project= fields.project as Map
return project.key
Based on code snipet above, I am succesfully returning the project key
But I am not able to get the issueType name, any idea how to get it correcttly?
regards
serge