Update problem Assignee


I'm setting assignee in a script runner post function via

issueService.assign(user, assignResult) ....

I see this assignee in the issue. But in the issue navigator it still shows unassigned.

If I update the issue (f.e. update the description) or reindex the issue manually , the assignee is also show in the issue navigator.

Extra funny: I'm using the script in 2 projects. In first project I don't have the update problem.

I've also tried to reindex in the post function => no effect for the 2 nd project.


boolean wasIndexing = ImportUtils.isIndexIssues();
IssueManager issueManager = ComponentAccessor.getIssueManager();


What could be the reason. Bug in JIRA or ???

What could the issueService.assign() forget ot trigger ?



1 answer

Hi there,

Your projects use the same workflow?

If not, check the order of post functions on the one you get the right result and copy it to the one you have the problem.

Yes the workflow is similar and should be ok. Post function is before index in worfklow => should be ok. But I found out the diferrence between the other project. The working project has an additional StateListener (Scriptrunner) setting some date values. So the issue is updated again => and this "solves" the update for the assignee (lucky strike). So the real problem is that the issueService.assing() has some refesh problem ??? Any idea therefore?

Why don't you use issue.assigneeId = "username" in your scripts?

doesn't help I don't think this would be stored anyway.

sorry you are right. I made a copy mistake so issue.assigneeId = "username" seems to work thanks

But then you don't find this issue if you search FYI project = XY and assignee = Testuser This issue is then NOT in the result list. If you update the issue => it's in the result list. So again an refresh problem

So long as your function is "first", you should be fine with issue.assigneeId = ... I would not use issueService for this, it will create a new history change group.

My init script can't be first (before create issue) because in front there's an email parser that creates the issue and my script cames afterwards. @Jamie: Do you have any idea for this refresh problem? There should be a reason. Thxs

@Jamie Echlin : Do you have any idea for this refresh problem? There should be a reason.

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 Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

182 views 0 4
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