fresh-umbrella-82426
04/04/2024, 11:15 AMbillowy-morning-42410
04/04/2024, 11:33 AMbillowy-morning-42410
04/04/2024, 11:35 AMbillowy-morning-42410
04/04/2024, 11:36 AMconst jiraUrl = 'https://your-jira-url.com'
const jiraUsername = 'your-jira-username'
const jiraPassword = 'your-jira-password'
// get the current date and time in ISO format
const now = luxon.local().toISO()
// create the JQL query to get all issues that are not done
const jql = `status != Done AND updated >= "${now}" ORDER BY updated DESC`
// set the request headers for Jira API
const headers = {
'Content-Type': 'application/json',
Authorization: `Basic ${btoa(`${jiraUsername}:${jiraPassword}`)}`,
}
// make the request to Jira API to get all issues that are not done
const response = await axios.get(`${jiraUrl}/rest/api/2/search?jql=${jql}`, { headers })
// filter the response to only keep the issues that are not done
const issues = _.filter(response.data.issues, (issue) => issue.fields.status.name !== 'Done')
billowy-morning-42410
04/04/2024, 11:38 AMbillowy-morning-42410
04/04/2024, 11:45 AMchilly-oyster-29774
04/04/2024, 2:46 PMcrooked-van-25152
04/05/2024, 4:48 PM