Skip to content

Commit

Permalink
Updated JQL
Browse files Browse the repository at this point in the history
  • Loading branch information
J2-Tech committed Jan 22, 2024
1 parent 88101a2 commit 12bd946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ router.get('/issues/user', function(req, res, next) {

var endDate = new Date(req.query.end).toISOString().split('T')[0];

jiraAPIController.searchIssues(req, '(assignee = currentUser() OR (worklogAuthor = currentUser() AND worklogDate >= ' + startDate + ' AND worklogDate <= '+ endDate + ') OR reporter = currentUser() ) AND (status CHANGED TO ("'+ process.env.JIRA_DONE_STATUS +'") DURING ("'+startDate+'","'+endDate+'") OR status WAS NOT "'+ process.env.JIRA_DONE_STATUS +'" DURING ("'+startDate+'","'+endDate+'") )').then(result => {
jiraAPIController.searchIssues(req, 'worklogAuthor = currentUser() AND worklogDate >= ' + startDate + ' AND worklogDate <= '+endDate+' OR ((assignee = currentUser() OR reporter = currentUser()) AND ((statusCategory != '+ process.env.JIRA_DONE_STATUS +') OR (statusCategory = '+ process.env.JIRA_DONE_STATUS +' AND status CHANGED DURING (' + startDate + ', '+endDate+'))))').then(result => {
if (!result.issues) {
console.log(result);
}
Expand Down

0 comments on commit 12bd946

Please sign in to comment.