I am doing some rules the idea si the following:
When an issue is created it should make the following checks:
1.If the type is BUG
2.If there are linked issues to it
3.If any of the linked issues are part of the current sprint.
In that case if all 3 match , it should set the Sprint of the bug to the current sprint. I am receiving an error though , any help ?
Adding to the other answers provided...
The Issue Created trigger can happen so quickly that the data is not yet ready for other things, such as conditions and actions, leading to unpredictable results and rule errors.
When using the Issue Created trigger, it is a good idea to immediately follow that with the Re-fetch Issue action before performing any other steps. This will slow down the rule by reloading the data, helping to confirm steps work as expected.
Kind regards,
Bill
Try to put this JQL condition for the Sprint restriction, instead of "Issues in the sprint present"
sprint in openSprints()
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.
Hello @Georgi Nikolov
Can you provide a screen image of the details of the condition (IF: all match)?
I suspect that the problem is the third element of that condition but I would like to see the details.
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.
The condition:
Related issues: Issues in current sprint: present
...is trying to confirm that there are other issues in the same sprint as the trigger issue. Since the trigger issue is not currently in a sprint, this produces an error. It also doesn't match the condition that you said you wanted which is
If any of the linked issues are part of the current sprint.
In that statement what are you referring to when you say "current sprint"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I managed to do it with Linked issues present and "
sprint in openSprints()
" as stated in the previous comment. Thank you all!! :)
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.