I made an automation to transition a subtask when the parent transitions to a specific status. It works for subtasks created by scriptrunner but not subtasks created manually. Same content, same type, etc...
In the audit log the manually created ones don't show up until I go into the subtask and edit a value.
Seems like somehow its not correctly indexed or something but I don't know how to fix it.
For a question like this, context is important for the community to help. Please post the following:
Kind regards,
Bill
Added this post-function right before the Jira index in the create transition with scriptrunner and now it works. Even though Jira should do the same..
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.util.ImportUtils
import com.atlassian.jira.issue.index.IssueIndexingService; def issueManager = ComponentAccessor.getIssueManager()
def issueIndexingService = ComponentAccessor.getComponent(IssueIndexingService)
def wasIndexing = ImportUtils.isIndexIssues()
ImportUtils.setIndexIssues(true)
issueIndexingService.reIndex(issueManager.getIssueObject(issue.id))
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.