hugalves
hugalves

Reputation: 373

Get time spent by field (column) on Jira

I have a board with 3 columns (To-do, Work in Progress and Done). Is there a way to get the time spent by a card on each column via API?

The getIssue does not fetch this kind of data

Regards

Upvotes: 0

Views: 1415

Answers (1)

altern
altern

Reputation: 5949

There is no 'time spent by' measure available through the JIRA REST API (as it is too narrow/specific).

There is a possibility to get timestamps of status changes via REST API though. As this answer explains it, you need to use &expand=changelog flag in your API request. In this case response would return created field for each transition that issue has made. You can use it to calculate time between issue transitions.

There is another answer that explains how to get dates using jira-python library (just in case you use it).

Upvotes: 1

Related Questions