Forums

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

Change Assignee issue problem with Jira SOAP

edern rivoallan
September 25, 2015

Hello,

I having some trouble changing the assignee on an issue. I tried some commands :

  • JiraSoapService.updateIssue(token, issueDejaCree.getKey(), new RemoteFieldValue[] { new RemoteFieldValue("assignee", new String[] {"username"}) });
  • JiraSoapService.progressWorkflowAction(issueAModif, "11", new RemoteFieldValue[] { new RemoteFieldValue("assignee", new String[] {"username"}) });

I use an administrator account and I have rights to assign user. I can update all other field from issue (except Reporter).

The users that I want to assign are in the right project, I think it's not the problem.

Does anybody know what to do ?

Thanks

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 Champions.
September 25, 2015

That strongly suggests that your SOAP user does not have the rights to assign user (your admin account is irrelevant here - what does the permission scheme say?)

edern rivoallan
September 25, 2015

In the web UI, I see that my SOAP user have the right to assign user.

Manager have right to assign and the role of my SOAP user is manager.

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 Champions.
September 25, 2015

Ok, it's good to confirm. Next question along the same lines - can you actually assign the issue in the UI with that user? Does it appear on screen when you edit?

edern rivoallan
September 25, 2015

Yes no problem with the UI

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 Champions.
September 25, 2015

Oh, hang on, sorry, I might have missed something You've got RemoteFieldValue("assignee", new String[] {"username"}) }); But assignee is a single value, so don't you need RemoteFieldValue("assignee", new String {"username"}) });

edern rivoallan
September 25, 2015

It's not possible, this object use a String array. But I think it's not the problem because I use this method to update other field without problem.

Suggest an answer

Log in or Sign up to answer