Dear
Currently, I try to solve a request from user concerning the automation rules from Issue-type et sub-type associated for 2 requests below : Request 1 is done, but I have a problem on Request 2.
For your information on workflow, after RAISED, the status go to TREATING, then RESOLVED = point -B-
From Incident, I created an automation Rule to create a Data Issue
If you have an idea for my request 2, thank in advance
- A-
- B -
- C -
C
Are the Data Requests sub-tasks of the Incident, or related to the Incident via linked issues? Both appear to be present in -C-
-----------------
If I'm reading the requirement correctly, you need for -A-
And then for -C-
Below I've created rules for -A- and -C- based on either link type or sub-task. If you have any questions about the instructions, please feel free to add a comment below!
-----------------
-A- Link Type
If Data Requests / Incidents are linked:
The trigger Issue Linked assumes the source issue is where the action should take place, rather than the destination. I assumed that Data Request is the source issue (eg. Data Request blocks Incident), hence the need to clarify the destination issue in step 3.
-A- Sub-Task
If Data Requests are sub-tasks below Incidents:
-----------------
-C- Link Type
To then close the Incident, if Data Requests are linked, using the same example above (Data Request blocks Incident):
The way this rule works, is the Trigger is a Data Request - the Branch in (3) then moves the action to any linked issue related to the trigger issue with a type "blocks" - like Incidents.
The condition in (4) then verifies the issue type (Incidents) and status to take action against.
In (5), the rule then checks the opposite way, that all issues linked to the Incident via "is blocked by" are resolved, by checking no related Data Requests are open. The condition "none match specified JQL" allow other issue types to be blocking the Incident but not impact the automation rule.
-C- Sub-Tasks
Likewise, to close the Incident if Data Requests are sub-tasks:
The Branch in (3) moves the action from the Data Request sub-task to the Incident parent; (4) then verifies this is just for Incidents in the right status, before (5) checks that all other Data Request children are also in Done.
-----------------
All the statuses, JQL values, etc can be refined depending on your specific user cases - for example, the Actions could be extended if you need to set resolution as well as status during closure.
The target here was to fully automate the process without the need for manual triggers.
Let me know if this all makes sense and if you have any questions, please leave a comment below!
Ste
Thanks a lot Stephen for your answer.
I tried again and again this solution by respecting the order for "C-Link type" => impossible to put from "TREATING" to "RESOLVED"
I executed each queries requested on your solution with validation JQL (it"s ok) but the Status change still not working !
I always try to find the solution this week.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume "Treating" and "Resolved" are two statuses in the Incident Workflow? Is this where the error is coming from?
Is there a status transition between these two? The relationship has to exist for automation to function.
Perhaps a screenshot of the workflow for Incidents would be useful here, so I can tweak the rule specifically for your use-case :)
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, please have a look on picture attached below
No other transition between TREATING and RESOLVED
+ attached WF incident
Regards
vivian
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.
First thing to check - on the rule itself, the Trigger states when issue transitioned FROM Done, Closed.
This should be TO as you're closing the issues, not reopening them.
I'd fix this first and see if it works.
---------------
If this doesn't solve the issue...
Are there any properties required to move an Incident from "Treating" to "Resolved"? For example is a resolution required? Or does it require a specific project role?
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephen
I changed from FROM to TO, same thing.
There is not properties required between TREATING and RESOLVED
I tested just a simple automation between Treating and Resolved and it's work.
the error finds in the Blocks "Branch rule" on "Issue Linked". I tried with "BLOCK", "PARENT", etc.., I have an error each time : "No related issues could be found."
I will try to work on this part with others condition
Thanks
Vivian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you manage to get these rules working?
For the above comment, one thing you could try is:
^ See if results are now found from the Branch.
I built the rules in our environment and they worked - so hopefully you have been able to replicate this functionality and locate why Treating could not transition to Resolved! :)
Let us know if these are still not functioning as expected!
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I Stephen
After some tests, I found my solution and it's working well (image attached)
Best regards
Vivian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome! Glad it now works!
If this answer helped to find the solution, could you press "Accept Answer" at the top?
This will help other users who locate this question know this thread will help!
Ste
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.