Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

From jira tempo rest api i am not able to get the project creation date in nodejs any solution for t

Wamique Riyaz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 14, 2023

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);
});

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events