Tried a JQL statement of {{comment.created.longTime.isAfter(6:00:00 PM GMT)}}
However I get audit log errors that tell me nothing more than'Action details:Issue conditionThe following issues passed: ticket id'
Hi,
I think the problem might lie in your smart value. "longTime" is actually a formatting function so will print the date as a String. Once it's a string it doesn't know how to do an isAfter date comparison. I think just removing that will get you what you need.
{{comment.created.isAfter(6:00:00 PM GMT)}}
Cheers,Brydie
Hello @Ben Greene
Please provide all the details of your Rule.
How are you using that JQL statement?
The log is indicating it found an issue that matches your Condition, but you didn't tell us what the condition is.
Are you expecting some action to be taken against the matching issues? What is the action? Is the action not being taken?
Hi @Trudy P Claspill
Thanks for the reply, yes I am expecting a comment to be made on the issue when the timeframe of the reporter's comment is outside the hours I am comparing to:
The comment is not being made and the error just tells me 'issue passed'
Who is the Actor for the Rule? This will be shown on the Rule Details page.
Does that actor have the permissions needed in the project to add comments to the issues.
Can you show the details of the If and Else-If components?
Can you add Log Actions within your If and Else-If branches that will log a message to the audit log? That will tell you which condition specifically has been matched.
Is this the entire rule? Can you show the entire rule?
In the Audit Log you should get an "Issue Conditions" message for each condition that the issue passes.
If the entirety of the Audit Log is
'Action details:Issue conditionThe following issues passed: ticket id'
...then only the first condition (Reporter is not one of) is being met by the triggering issue. The second condition (Created equals a business day) is not being met, so none of the rest of the Rule is being evaluated/executed.
I recreated your rule components, and you can see here that I get two Issue Conditions statements in my log.
So, I know it is getting past those two conditions, but the Status of the rule execution is still "Some Errors". That tells me there is something wrong with the IF component that needs to be investigated.
The Log Action is very helpful to add to your rule to log messages and values into the Audit Log to help you debug the rule. For instance, you may want to add a Log Action immediately after the trigger to log the value of Created so you can see what the rule is comparing to "a business day". And I would recommend you use a Log Action to record the value of {{comment.created.logTime}} so that you can see the value being used in the comparison.
Here I've added that last Log Action I suggested.
Hi @bmccoy
Thanks for the response, I will give that a go and let you know if it works.
I was just now having errors with instead trying startOfDay.
Perhaps I am under the wrong impression on how startOfDay works, I looked at the documentation but I didn't see what time startOfDay refers to.
I assume it is the time of 00:00 of the current day, but maybe it instead references the beginning of a work day e.g. 09:00 ?
@bmccoy doesn't look to have worked sadly.
@bmccoy this is still an issue for us on our side, can you suggest any other methods of checking if the time is before / after a certain hour of the day?
It looks like you're new here. Sign in or register to get started.