Automation failing because jql can't read input date

Katie Sobolik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2025

I am trying to run this automation, which should be triggered manually, then prompt for a startDate. That start date should be input into this jql filter query: 

 

project = "Data Management" and summary ~ "dbt Job Run: Test_Center.Test" and issuetype = "Test Execution" and created >= {{startDate}} 

This is the failure I get from the audit log: 

Manual trigger from issue 02/19/2025, 09:32:28

Create variable 02/19/2025, 09:32:28

JQL condition 02/19/2025, 09:32:28 JQL didn't run, which prevented the JQL condition from passing and its actions from being executed: Invalid JQL: project = "Data Management" and summary ~ "dbt Job Run: Test_Center.Test" and issuetype = "Test Execution" and created >=

I know the issue is around the startDate, but I can't figure out how to fix it. This is the variable: Variable name = startDate    Smart value={{userInputs.startDate}}

Any help would be appreciated

2 answers

1 accepted

2 votes
Answer accepted
Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2025

@Katie Sobolik 

Assuming your variable name is: startDate and your input date is 02/19/2025 09:32:28 and you need to use time part, then below will work. / is a reserved keyword for JQL and your date format is giving errors. JQL does not take seconds so that needs to be removed.

if your format was in yyyy-mm-dd format, then it would have worked as it.

project = "Data Management" and summary ~ "dbt Job Run: Test_Center.Test" and issuetype = "Test Execution" and created > {{userInputs.startDate.toDate("MM/dd/yyyy H:m:s").format("yyyy-mm-dd H:m")}}

Apologies for the multiple edits as the time part had to be incorporated as well.

Katie Sobolik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2025

made the updates and still receiving the same error. also updated the startDate

Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2025

 

project = "Data Management" and summary ~ "dbt Job Run: Test_Center.Test" and issuetype = "Test Execution" and created > {{userInputs.startDate.toDate("MM/dd/yyyy H:m:s").format("yyyy-mm-dd H:m")}}

Check with this date  02/19/2025 09:32:28 

3 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 19, 2025

Hi Katie - Welcome to the Atlassian Community!

Try this: {{userInputs.startDate.jiraDate}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events