You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I created a multiline custom field and associated it with a create/view/edit screen of all issuetypes in my project.
I have a transition in a workflow with a post function triggering a scriptrunner script. The user is set to Initiating User. In that script I do following Unirest API call:
def issue = Unirest.get("/rest/api/latest/issue/${issueKey}?expand=customfield_12549") .header('Content-Type', 'application/json') .asObject(Map) .body
Assuming the expand keyword is optional.
The variable issue contains a map to the asked issue. However the concerned costum field is missing in the data.
Strangely enough making the same API call in the Scriptrunner Console gives a data structure containing the wanted custom field.
What makes a possible difference between both calling situations?