Forums

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

How to create a Automation rule for creating sub task automatically when story is story is created

Vimal G July 15, 2025

I am facing an issue while creating automation rule for creating sub task automatically when story is created, i am having two mandatory fields called Modules and Affects version. when i am trying to execute the rule i am getting two error.

1.  Affects versions is required. (versions), Modules is required. (customfield_10308)

2. Given parent work item does not belong to appropriate hierarchy. (parentId)

4 answers

1 vote
Trudy Claspill
Community Champion
July 15, 2025

Hello @Vimal G 

What type of project does this concern? Get that information from the View All Project page under the Projects menu.

Is the "Sub-task" issue type available in that project? Check carefully. In Team Managed projects the default name for the issue type at level -1 is usually "Subtask" without the dash.

For the Parent field try changing the setting to Trigger Work Item.

For the Affected Versions and Modules field try clicking the ... button to the right of the field and selecting COPY.

Screenshot 2025-07-15 at 10.14.59 PM.png

That will fill the field with text like this:

Screenshot 2025-07-15 at 10.15.32 PM.png

Click on that text and you should get a pop-up similar to this:

Screenshot 2025-07-15 at 10.16.53 PM.png

Change the Issue to copy value from selection to Trigger Work Item

Screenshot 2025-07-15 at 10.17.07 PM.png

Close the pop-up. Save the rule, and try executing it again. Let us know the results.

0 votes
Gor Greyan
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.
July 16, 2025

Hi @Vimal G

What type of field is the Module?

Try the following smart values.

Affected Version - {{triggerIssue.fields.versions.name}} or {{triggerIssue.fields.versions}}
Modules -  {{triggerIssue.fields.customfield_XXXXX}}

Let us know about the results.

0 votes
Tinker Fadoua
Community Champion
July 15, 2025
  • You will be the one creating the Story Work Item
  • Yes the condition you have make sense
  • If module and affects version are mandatory you don't need to add them in the condition
  • It seems like you are creating the subtask and all you need to do is inherit the fields (please make sure the fields are available in subtask screen as well
Vimal G July 15, 2025

yes, the fields are available in Sub Task level also but the still it showing the error that Modules fields are required

The Module field in the subtask is not fetching the required data from the story. The smart value i provided for Modules field is wrong. Can you suggest me how to provide the  smart value

Tinker Fadoua
Community Champion
July 17, 2025

@Vimal G  the solution provided above which is copy from the current issue should work.

Any luck?

Best,

Fadoua

0 votes
Tinker Fadoua
Community Champion
July 15, 2025

@Vimal G 

Can you please share your automation rule? Please hide any confidential information

Best,

Fadoua

Vimal G July 15, 2025

Please take a look into it

 

Automation rule screenshot.jpg

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events