Hi,
I'm trying to setup the automation rules which will be based on few conditions. Main goal is to transition incident ticket to next stage once all of those conditions are met. I used few types of configuration however none of them work as intended.
My first call was to go with:
When: Issue updated -> If: all match -> Issue field condition: field "x" is not empty, Issue field condition: field "y" is not empty, Related issues condition linked issue, blocked by, are present -> Then: trasnition issue to: work in progress
However this formula didn't work as expected, sometimes it was triggered, however most of time don't. I was also trying to use different configuration based on for example When: Issue linked or When: field value change however either of those were working.
Can someone help me please how i can setup the rules based on attached links and updated fields? Many thanks in advance.
Hi @Jakub Szymanski ,
From my personal point of view I would split the rule as in fact the rule could be triggered by several events (at least it seems so from your conditions).
Looking forward to your answer.
Best
Stefan
@Stefan SalzlHi Stefan,
Rule is triggered, however most of time it is saying that "no action performed" and "The following issues did not match the condition" which is strange, cause all the fields are present and updated. When there is success of the rule, usually is when i'm updating it once again (so if i put all the fields for the 1st time it's not working) but when i'm updating fields for 2nd time it is working as expected.
Yes, i can add some restriction that rule should working only for incidents, how i can do this?
I need to updated:
Urgency - which is JIRA based field of single choice
Assignee - which is also JIRA based field for assignee in the ticket
Severity TEST - this is being auto calcuated based on impact and urgency which i setup different autoamtion rule which is working as expcted. Severity is calculted based on matrix. This is field that i have made on my own.
Linkin issue - this is standard linking between the isses on the JIRA. There is no matter what i will link, what is matter that i need to use "is blocked by" or "blocks" rule.
I cannot seperate those to several rules as all of those fields have to be update to apply this rule, i don't wnat to have 1 field updated and trigger the rule, i need all of those updated to trggered it. Most important here is the link for new issue.
Do you need more details to help me? Please let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jakub Szymanski ,
I´ll refer to several parts of your answer in blocks:
most of time it is saying that "no action performed" and "The following issues did not match the condition"
Severity TEST - this is being auto calcuated based on impact and urgency which i setup different autoamtion rule which is working as expcted. Severity is calculted based on matrix.
Yes, i can add some restriction that rule should working only for incidents, how i can do this?
Uffff....that´s quite a lot to read. Hope it helps.
Looking forward to your answer.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Stefan SalzlMany thanks for your comment, i really appriciate your help.
I hope i did everything fine, here is screenshot from the log, it's marking as success now after i add debuging, but still not working.
JS: Yes that is the case, however not quite, it's based on two fields Urgency and Impact. I have even removed Severity from rule instead adding just Urgency and Impact as those are manual choice, and still that didn't work. To be honest i'm suspecting that there is some problem when i'm linking issue, however i'm not sure if that's the case. Screenshot looks like this for this rule:
This could be handled by another condition after the trigger that checks for the issue type. The rule would still be triggered by update of any issue tpye but would then at least would stop immediatly after the trigger if the issue type doesn´t match. Otherwise all other checks would be done too. Might only be a small change but I prefer to step out of a rule (if i know the conditions) as early as possible (if the conditions don´t match) to avoid unnecessary processing ;)
JS: Thanks for the hint i will look for that and add it. that might be helpful.
Please let me know what else can i do. And many thanks for all the time you already gave me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jakub Szymanski ,
you are welcome. That´s what this community is meant for ;) We are happy to share insights and experience and you know: sharing is caring :)
I reproduced this on my site. I figured out that "changing/adding assignee" as well as "linking an issue" obviously don´t update the original issue (or at least don´t trigger the automation rule).
Therefore I would stick to the solution to split the triggers and check vice versa:
Hope this helps ;) Please let me know if you have any further questions.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Stefan SalzlMany thanks, you truly are great.
However still not working... but now i believe i'm making some mistake with configuration. can you take a look and let me know if that would be correct what i have done? Many thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a special trigger for "issue linked". As I got it from your description one of the conditions is the linking of type "Block" --> see screenshot. The "issue linked" trigger could listend to this special event (Parent link will not trigger this). You could check the audit log to analyze whether the rule was triggered and if why wasn´t the action processed. In case the rule still doesn´t work: please also add the screenshot of the audit log from an expected run of the automation rule.
Hope this helps and we are coming close to a solution ;)
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Stefan Salzli hate to say that after all your help, but still not working as it should, however i noticed something strange, can you explain me how exaclty liking rule works? Description says:
Rule executes when an issue is linked to another issue. {{issue}} will always refer to the source issue, so if ISSUE-A is blocked by ISSUE-B, this rule will execute on ISSUE-B. To access ISSUE-A, use {{destinationIssue}}, and to access the link type, use {{linkType}} (e.g. {{linkType}}
If i want to have that rule applied for the issue that link was added, however ISSUE-A is blocked by ISSUE-B and I add link to the ISSUE-A rule should be extecuted in ISSUE-A right? Maybe that's the reason it still not working? How should i use {{destinationIssue}} rule? I strongly beleive this will solve this finally, but i'm not sure how to use it. Are you aware how to do it?
PS. I cannot even say how much i'm greatful for all your help. Seems like we are close to finalize this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please explain in more details what did not work? where does the rule fail? what is the audit log logging? Please add a screenshot of the audit log and and the issue that triggered the rule and also describe the procedure what you did in the issue to trigger the rule.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BTW:
Here is a link the describes the types of linking (inward/outward - source/destination):
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jakub Szymanski ,
I´ve set up a rule that I guess will meet your requirement (see screenshot):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's the correct approach, and adding those almost the same as you did have solved my issue. Many thanks for all the help you gave, that was brilliant i really appreciate your effort.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome :) It‘s my pleasure ;)
So happy we could get this working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From your automation list, you can select the 3 dots for your rule to export a JSON file for the actual configuration. If you attached or posted that, it may get a better response than trying to summarize. Unfortunately, I can't help with what you're attempting.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.