I am trying to use jira rest api in nodejs and i need project creation date from jira tempo api how can i get that;
below is the code which i am trying to use:
const axios = require('axios');
// Replace with your Jira Tempo API base URL and project ID
const baseUrl = 'https://your-jira-instance/rest/tempo-teams/2';
const projectId = '123456';
axios.get(`${baseUrl}/project/${projectId}`)
.then((response) => {
const project = response.data;
const creationDate = project.created; // or project.createdDate
console.log(`Project creation date: ${creationDate}`);
})
.catch((error) => {
console.error(error);
});