Change Assignee issue problem with Jira SOAP


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 ?


1 answer

0 vote

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?)

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.

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?

Yes no problem with the UI

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"}) });

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

174 views 1 17
Join discussion

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