How do I logically assign a subtask to a given person when it is generated by a rule?

I have a rule that automatically generates a subtask when an issue is transitioned to a given status. However, I have a matrix of assignees that this given subtask should be assigned to given a property of the parent status. For example, if the original issue has a field "Responsible Department" set to "IT", then assign the generated subtask to Person A, or if "Responsible Department" is set to "HR", then the subtask should be assigned to Person B. Is this possible?

As a test case for a single flow, my rule JQL looking at the status and the IT department field passes, the subtask is created, but the AND "Assign issue to" clause doesn't seem to set the assignee of the subtask to my specified user.

 

1 answer

1 accepted

0 vote
Nick Menere Community Champion Dec 14, 2016

Hi Justin,

I'm thinking of adding the ability to map values to the values which would make this pretty trivial. In the mean time you will need to do the following:

  • Create the subtask
  • Add a "Related issues" action
    • Select to work on Sub-tasks
    • Check if the value of the field on the parent = "IT"
    • Set the assignee Person A
  • For each group you want to assign to repeat the above

It should look roughly like this:

image2016-12-15 11:35:16.png

 

You can check the value of the parent a few ways but the one i used is the quickest.

 

Let us know how you go.

Cheers,

Nick

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

136 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you