I am trying to update an issue and setting a reporter in which is an inactive user in jira and unfortunately i cannot activate the user since the user in in AD which cannot be written.
1. issueInputParameters.setReporterId(reporter.getUsername())
2.IssueService.UpdateValidationResult updateValidationResult = issueService.validateUpdate(superUser, issueId, issueInputParameters)
but when validation happens the code breaks with the below error. Can you please suggest how can i make this work?
The reporter specified is not a user.
Thanks
Abhishek
Jira does not let you set the reporter (or assignee, or other user fields) to an inactive user because the user is not valid any more. SR can't override the core code.
Why are you trying to do this?
We need to update the issue even if the reporter is inactive using the above code only. We have got some integeration which triggers this code and the calling party is sending the reporter which is inactive user in jira and is part of AD which is read only we cannot nake it active and we want to ensure the flow works even if the user is inactive in jira. Is there any way we can make this validation pass so that our workflow works for inactive jira user (reporter)instead of getting this error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm sorry, I was not clear in that question.
Why are you trying to change the reporter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not changing the reporter. What i am saying is the reporter we get from the third party in our integeration is inactive user in jira and when we run the below code validation fails. Is there a way we can pass thw validation for inactive reporter.
1. issueInputParameters.setReporterId(reporter.getUsername())
2.IssueService.UpdateValidationResult updateValidationResult = issueService.validateUpdate(superUser, issueId, issueInputParameters)
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.