I need to find all Issues that are updated and created today in Jira. Im able to get an issue by passing a single Issuekey value to the url in my apex code. Help me in Querying a list of issues which are updated and created today.
This is my apex class.
public with sharing class GetIssues {
public static void Getfields(String JIRA_Key) {
HttpRequest req = new HttpRequest();
HttpResponse res = new HttpResponse();
Http http = new Http();
String username = 'admin';
String password = 'admin';
Blob headerValue = Blob.valueOf(username+':'+password);
String authorizationHeader = 'Basic ' + EncodingUtil.base64Encode(headerValue);
req.setHeader('Authorization', authorizationHeader);
req.setHeader('Content-Type','application/json');
String endpoint = 'https://mysfjira.atlassian.net/rest/api/2/issue/'+JIRA_Key;
req.setMethod('GET');
req.setEndpoint(endpoint);
res = http.send(req);
}
}