Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use a custom smart value to auto-assign sub-tasks

Dillon Kenniston January 30, 2023

Hi there,

I'm trying to auto-assign sub-tasks to assignees based on a custom smart value.

The steps are:

1. (Lookup issues) - If issues in other projects share the same fixVersion, then

2. Create variable {{listOfProductBenesVar}}. That's the variable name; the Smart Value is {{lookupIssues.parent.Product Beneficiary.displayName.distinct}}. This gives me a list of distinct "Product Beneficiary"ies, which is a custom field in the Epics/parents of tickets in the fixVersion.

3. I then branch and split that list of ProductBenes like this: {{listOfProductBenesVar.split(",")}} - and name it "listOfProductBenes". (The goal of this step is to include the names of these users in the sub-task summaries. This is happening successfully; sub-tasks are being created, one per Product Bene, with Product Bene names in each summary.)

4. Then, I branch down to create sub-tasks. The branching logic is in the image. As you can see, I'm trying to set the assignee of each created sub-task as the same Product Beneficiary user. (I can't do this via "Choose fields to set" = "Assignee", because Smart Value isn't an option here like it is in the "Assign a user" step. And the problem with "Assign a User" step is that it wants to assign the trigger issue, not these newly-created Sub-Tasks.

I assume I need to set the Assignee in this "Then: Create a new 'Sub-task'" step. If so, how would I use the same list of Product Benes iteratively set assignees to sub-tasks?

Thank you!!!

1675102286198.pngCapture2.PNG

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events