Automation branch not showing all sub-tasks

Kevin Verheyden
Contributor
January 9, 2025

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.

3 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2025

Hi @Kevin Verheyden 

For a question like this, context is important for the community to help.  Please post the following:

  • an image of your complete automation rule in one single image,
  • images of any relevant actions / conditions / branches,
  • an image of the audit log details showing the rule execution, and
  • explain what is not working as expected and why you believe that to be the case.

Kind regards,
Bill

0 votes
Kevin Verheyden
Contributor
January 9, 2025

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)
0 votes
Tharaka_Hettiarachchi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2025

Hello @Kevin Verheyden ,

Can you please share screenshot of your automation rule?

 

Suggest an answer

Log in or Sign up to answer