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
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
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

358 views 0 6
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