Forums

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

Concurrent Modification Exception while updating issue

aas
Contributor
May 15, 2020

Hello everybody, I need help of community

When I try to move issue from one project to another, where I have Script Field which calculates and fills itself and another fields I have Concurrent Modification Exception on that line

ComponentAccessor.getIssueManager().updateIssue(user, currIssue, EventDispatchOption.DO_NOT_DISPATCH, false)

 

How can I solve that problem? May be script must wait while issue created or sleep some time? 

1 answer

0 votes
aas
Contributor
May 31, 2020

I solved this problem using 

CustomField.updateValue(FieldLayoutItem fieldLayoutItem,
                 Issue issue,
                 ModifiedValue modifiedValue,
                 IssueChangeHolder issueChangeHolder)

instead 

ComponentAccessor.getIssueManager().updateIssue(user, currIssue, EventDispatchOption.DO_NOT_DISPATCH, false)

Suggest an answer

Log in or Sign up to answer