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

sweety pareek 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events