Hi friends,
I'm trying to use the JQL Condition feature of Automation for Jira to run some queries using ScriptRunner JQL Functions, and I can use the following JQL successfully:
issueFunction IN incompleteInSprint("[Board Name]", [Sprint Name])
But not..
issueFunction IN addedAfterSprintStart("[Board Name]", [Sprint Name])
I have validated that the issue in question responds correctly to this JQL outside of A4J, but, when run the same JQL within A4J's JQL Condition the condition fails.
Does anyone know why this would be?
Many thanks!
Hello @Phil McArdle
I just checked and below syntax works for me in data center's Automation:
issueFunction in addedAfterSprintStart("NEXTGEN", "KPMS 2021-S40;2")
where NEXTGEN = board name and KPMS*** = Sprint Name.
To troubleshoot, Please make sure that this board's (NEXTGEN in my case) filter query has the Project where you are authoring the automation rule.
In other words, when you run this query outside of automation, the issues you see, should be of the same project where you are authoring the automation rule.
If they are in a different project than where you are authoring the rule, you need to expand your scope. Which, depending on your firm/admin rules, maybe or may not be possible.
Hope it helps. Thanks!
Hi Kalyan,
I'm authoring the automation role as a global rule because it spans multiple projects, and the agile board I'm referencing has the same projects in its filter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried to just give board name:
issueFunction in addedAfterSprintStart("NEXTGEN")
Cause If its a custom board created just for this information and sprint was not created for this board, then unfortunately providing Sprint argument may not work...
Below is the blurb from Scriptrunner's site:
If a board
and sprint
are used, but the sprint
was not created from that particular board,
then the function will not show any results. The sprint
needs to have been created from the board
used in the function. This is a limitation on the information we receive from Jira when an issue is moved into a sprint after the sprint has started.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalyan,
Thanks so much for continuing to engage on this question - per my original post, I am using the board name & sprint name in the function (I've just had to redact them for my question).
Further, the sprints in question were created from this board.
As per the original question, the JQL works fine anywhere except the JQL Condition feature of Automation for Jira.
Thanks!
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.