Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Team how can I get the initial assignee(during creation) of a Jira ticket using python?

Suny Chowdhury
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2018

Hi Team I am fetching the jira incident history using python   but I can not find any place holder to get the initial assignee name.History inside changelog shows the assignment change history but not the the first assignee whom the ticket was assigned  during the creation.Can any one please help me to get it done.

 

Thanks

Suny

1 answer

1 accepted

0 votes
Answer accepted
Mauricio Karas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2018

Hey, Suny. Thanks for reaching out to the Atlassian Community!

Upon testing the "GET /rest/api/2/issue/{issueIdOrKey}/changelog" call, I can see that in the returned payload there's an object for the assignee change which has the following information:

"fromString": "Mauricio Karas"

 This is the actual value that was before the change in the field, you can see also the "toString" field to know to what value it was changed. You can look for the first assignee field change and check this "fromString" field to know the first assignee. If there are no changes in this field, the assignee should be the same as the one set in the creation.

Kind regards,
Maurício Karas

Suny Chowdhury
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 20, 2018

Thanks Mauricio for the solution.I am  able to get the value . If there is already a field for this value that might reduce this additional loop.Thanks again for your valuable response.

Thanks & Regards

Suny Chowdhury

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events