I'm still new to using JIRA and currently I'm using curl to invoke jira rest commands. I would like to get the assignee of an issue via rest but I can't seem to find the way how to do it.
2 Answers
You have to query for particular issue like this:
http://hostname/rest/api/2/issue/ISSUEKEY you will receive a JSON object with nested assignee object looking like this:
"assignee": { "self": "http://hostname/rest/api/2/user?username=abcde", "name": "abcde", "emailAddress": "[email protected]", "avatarUrls": {....} } 1 Comment
edenjane
I already came across this query and got a result. My problem was how to get the assignee from the result. I just realized now that all I need to do is call the fields then assignee from the result like this:
$result.fields.assignee Anyway, thank you very much for the help. I will set this one as the answer since this is more understandable from others' POV.Just look right here:
You have to request the whole issue information. To do that, you have to know the JIRA Issue you want to have the assignee of. You will find it in "fields" -> "assignee".