Hello Team,
we are using script listener to update a field for created and updated events.
the value is updated and shown correctly on the issue.
but it is not updating on the dashboard.
below is the code.
mycustomfield.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(mycustomfield), newvalue),new DefaultIssueChangeHolder())
issueManager.updateIssue(user, issue, EventDispatchOption.DO_NOT_DISPATCH, false)
I guess you need to er-index the issue ? Does the JQL return the issue when you filter on the changed field ?
import com.atlassian.jira.util.ImportUtils
import com.atlassian.jira.issue.index.IssueIndexingService
Boolean wasIndexing = ImportUtils.isIndexIssues();
IssueIndexingService indexing = (IssueIndexingService) ComponentAccessor.getComponent(IssueIndexingService.class)
indexing.reIndex(issue)
ImportUtils.setIndexIssues(wasIndexing)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.