Forums

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

The reporter specified is not a user.

Deleted user December 15, 2022

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

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2022

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?  

Deleted user December 16, 2022

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.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2022

I'm sorry, I was not clear in that question.

Why are you trying to change the reporter?

Deleted user December 16, 2022

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)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events