Jira REST API changelog does not include assignee change Edited

If a user resolves an issue and changes the assignee in the resolution dialog, the changelog returned by the REST API includes the status change but not the assignee change.

Is this a bug? Is there a way to know that the assignee changed?

TIA

1 answer

0 vote

Hi Chris,

 

I have just validated this using the JAVA API 7.5.0. To test, in a post-function I have a custom Script Runner script with the below text.

def map = issue.getModifiedFields()
map.each {
def modifedValue = it.value
log.info(it.key + " = " + " changed from " + modifedValue.getOldValue() + " to " + modifedValue.getNewValue())
}

The log successfully prints for the change in assignee and resolution.

Can you please provide you code block so we can help diagnose the issue if possible?

Also let me know if you are trying to do this in a condition/validator or a post-function?

Cheers

Bhushan

Hi Bhushan,

Sorry, I was referring to the REST API, not the Java API. I've updated the original question to clarify this.

This is done in a standalone C# app that we use for reporting. It is simply the response from

https://[our-company].atlassian.net/rest/api/2/issue/[issue-key]?expand=changelog

The returned change log includes the changes in status and resolution but not the change in assignee.

Thanks,
Chris

By the way, the change in assignee doesn't show in the History tab when I view the issue in Jira either. The changes to status and resolution show, but the change in assignee does not. This seems like an error.

Here's what I'm talking about. In the Resolve screen, the issue's status, resolution, and assignee were all changed, but the change log returned by the REST API only has the status and resolution:

"items": [
      {
          "field": "resolution",
          "fieldtype": "jira",
          "fieldId": "resolution",
          "from": null,
          "fromString": null,
          "to": "10400",
          "toString": "Not a problem"
      },
      {
          "field": "status",
          "fieldtype": "jira",
          "fieldId": "status",
          "from": "1",
          "fromString": "Open",
          "to": "5",
          "toString": "Resolved"
      }
  ]

Hi Chris,

By the way, the change in assignee doesn't show in the History tab when I view the issue in Jira either. The changes to status and resolution show, but the change in assignee does not. This seems like an error.


Do you actually see the change in assignee and the change is not being logged in the history? If yes, please raise a technical support request at https://support.atlassian.com/contact/#/. The team will be able to confirm if it is a bug and help you out.

If not, we can try and investigate your workflow post-function in more detail.

Cheers

Bhushan

Hi Bhushan,

Do you actually see the change in assignee and the change is not being logged in the history?

Well, what we see is that the current assignee is not the same as the last assignee shown in the history, so at some point there was a reassignment that is not in the history (or the change log).

I suspect that this happens when a case is automatically reassigned during resolution, which occurs because we have "Assign the issue to the reporter" as a Post function. I think that this action doesn't go into the history, even though (IMO) it really should.

I will contact tech support.

Thanks,
Chris

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published yesterday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

37 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot