Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL Help

Jaykay Selvaraj
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!
April 24, 2019

Hello,

I'm trying to get list of jira tickets created for last week. I have created the following script to pull the data, but it is giving error. Could anyone review and let me know how to resolve this?

Script:

curl -D- \

    -u ****:**** \

    -X GET -H "Content-Type: application/json" \

    https://****.atlassian.net/rest/api/2/search?jql=project="My Jira Project"+AND+created+>+startOfWeek(-1)+AND+created+<+startOfWeek()

 

Error:

line 5: syntax error near unexpected token `('

 

Thanks in advance

1 answer

0 votes
Kurt Klinner
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.
April 24, 2019

@Jaykay Selvaraj 

 

Hi Jaykay

can you put the url in single quotes to ensure that special characters do not get interpreted by your shell?

 

Cheers

Kurt

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events