Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

I have an automation rule that creates a few issues and would like to perform some actions on these created issues.  Yet when I add actions to my rule after create they don't update the created issue and log something along the lines of "No issues to assign" or "No issues in input".

Here's an example rule that doesn't work:

Image Removed

The problem here is that the main branch of an automation rule always refers to the issues produced by the trigger.  So when the assign issue executes, it tries to assign the issue produced by the 'Scheduled' trigger.  That's just a scheduler though that doesn't add any issues to the rule and therefore the assign fails.

Step-by-step guide

To solve this problem you have to branch the rule using the 'Branch rule / Related issues' action for 'Created issues'

  1. After your create issue action insert a 'Branch rule / Related issues' action with 'Created issues' selected
    1. On this branch add the 'Assign issue' action (or any other actions you want to perform on the created issues

 Here's what this would look like:

Image Removed

Info

For the example above, you could also set the assignee directly in the 'Create issue' action simply by adding the field. Please ensure though that the assignee field is on the appropriate 'Create' screen in JIRA first.

Filter by label (Content by label)
showLabelsfalse
max5
spacesAUTO4J
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "AUTO4J"
labelskb-how-to-article

...

hiddentrue

...


Info

Our documentation has recently move to a new location! Please head on over to: https://docs.codebarrel.io/automation/overview/related-issues.html#accessing-created-issues