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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
}
]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.