Forums

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

How to use variables in jql query while calling an api in java?

sweety pareek
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!
March 23, 2023

I am trying to use a jql query in my java code.

 

HttpResponse<String> response = Unirest.get("https://sweetypareek155.atlassian.net/rest/agile/1.0/epic/none/issue").basicAuth(e,p).header("Accept", "application/json").queryString("jql", "project = 'project1' and created > '2023-03-22'").asString();

 

Here i want to replace 

2023-03-22 with a string variable storing the current date of today.

How to use a variable here in jql? 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events