abbood
abbood

Reputation: 23548

is there an easy way to find out when an issue was closed

I'm researching for my company if we should migrate over to gitlab (From github).. github's issue api seems very rich and it has stuff like closed_at for an issue (it's very important for me to grab/analyze historical data about when issues got created/closed).

In gitlab's api doc for issues.. i don't see a similar field.. all i see is a state field (ie state: opened/closed/merged etc).. and i see a created_at and updated_at.. but i don't see any closed_at

ideas?

Upvotes: 1

Views: 95

Answers (1)

VonC
VonC

Reputation: 1323953

If you look at lib/api/issues.rb, the information closed_at is part of the issue.

Its Entity::Issue and Entity::ProjectEntityhowever does not expose that field.

expose :state, :created_at, :updated_at

That could be as simple at implementing a merge request for the project, to add that field to Entity::Issue.

Upvotes: 1

Related Questions