Change Assignee issue problem with Jira SOAP

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 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

66 views 0 5
Read article

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