Skip to content

Commit 12bd946

Browse files
committed
Updated JQL
1 parent 88101a2 commit 12bd946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ router.get('/issues/user', function(req, res, next) {
3434

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

37-
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 => {
37+
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 => {
3838
if (!result.issues) {
3939
console.log(result);
4040
}

0 commit comments

Comments
 (0)