Hi all! I am new to using the Atlassian API. What I want to get back is the person who is assigned to a ticket. I got the GET request working and am able to retrieve all the Service Management data and can select fields like project, description, and summary. When I looked at the API docs, it seemed like the assignee was called displayName in the json object. How do I get back either assignee or person who created the issue?
For context, I'm using Python to interact with the API.
Community moderators have prevented the ability to post new answers.
Hello @Jack Kower
Am not sure what are you asking. Are you using below end point?
/rest/api/2/issue/{issueIdOrKey}
Assignee object has different fields available, displayName, email, accountID for example.
Same with created object.
I'm using the url
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Jack Kower
I am not a developer and need to wait for others to pitch in, but if
'project': fields.get('project', {}).get('key'), gave you the project key, doesnt below give you display name?
'assignee': fields.get('assignee', {}).get('displayName'),
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.