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)
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.
That will fill the field with text like this:
Click on that text and you should get a pop-up similar to this:
Change the Issue to copy value from selection to Trigger Work Item
Close the pop-up. Save the rule, and try executing it again. Let us know the results.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vimal G the solution provided above which is copy from the current issue should work.
Any luck?
Best,
Fadoua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please share your automation rule? Please hide any confidential information
Best,
Fadoua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.