I have created a simple automation rule that will copy the sprint from parent to child when an issue is created.
But when the rule runs it gives me an error "Cant find the rule to copy from". Please suggest
Likely because Bug, Story, Task, Type arent subtask issue types therefore do not have a parent issue.
Are you trying to copy the sprint from the epic?
Hi @rupa_srivastava
Several recent community posts indicated timing issues with the create issue trigger. To avoid problems consider adding a re-fetch action. For your rule, it would flow like this:
Also adding to what @Randy suggested, if you need to handle sub-tasks you will need to use an if/else structure around the edit: if there is an epic link, use the epic as the parent; else use the parent.
Best regards,
Bill
Yes
Instead of parent, select epic (parent).
i did the above things and it worked for 1 field but copy failed for one field. I get the error as shown below What should i do?
All of the fields may not be available for all of your issue types.
If issuetype is Story, update relevant fields for StoryElse if issuetype is Task, update relevant fields for TaskElse if...Else...
They are available and have the same screens and context as the other field (that worked).The only difference between these two fields is that the failed field is a custom one .it displays an id when i select it while creating the rule.
That is interesting... When I use custom fields in smart value rule definition, I am able to use the human-readable name, rather than the custom field ID.
Here is an idea: for an example issue that would not update, use the REST API to grab all of the JSON and confirm the field ID and existence. (This technique is also helpful when you do not know the name of the smart value which you want to update.)
Look here for how to do that:
https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/
It looks like you're new here. Sign in or register to get started.