andygrunwald / go-jira

Go client library for Atlassian Jira
https://pkg.go.dev/github.com/andygrunwald/go-jira?tab=doc
MIT License
1.47k stars 469 forks source link

feat(issue): add statuscategorychangedate #650

Closed daveoy closed 8 months ago

daveoy commented 10 months ago

What type of PR is this?

What this PR does / why we need it:

Open for discussion, but this field is present on REST API responses from atlassian inside my organization's tenant. It represents the time a n issue has been present in its current status and I have based some metrics on calculations from the reported time.

Special notes for your reviewer:

Understand if you don't want to merge given this field appears undocumented in the REST API. Would love to know if its present in your organization as well (atlassian may need to update their docs in this case).

Additional documentation e.g., usage docs, etc.:

api docs here: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get

andygrunwald commented 10 months ago

Is anyone here from the community who can confirm the field in the response from your cloud instance is available?

aechweeks commented 8 months ago

@andygrunwald it is mentioned here and described in detail. You can also see that ProjectCategoryChangeEvent exists, so must it's status. I hope this helps

andygrunwald commented 8 months ago

@aechweeks The ProjectCategoryChangeEvent seems to be in the OnPremise version. The PR is changing the cloud version of the API here.

Thanks for the community post as well. Still no mention of cloud or on premise :(

I will wait for someone from the community to know, if someone else sees this field.

aechweeks commented 8 months ago

i can confirm it exists in the cloud version. is there a test i can provide you or a repo i can setup to prove it? this is def there and is the best way to check if something has or hasn't happened.

the status show here, which indicates it can be used here as an event.

for more proof:

statusCategoryChangeDate() Similar to StatusCategory, you can issue based on the timeline using the statusCategoryChangedDate() function

andygrunwald commented 8 months ago

Thanks all.

aechweeks commented 8 months ago

thank you! i think your burden of proof is reasonable and leads to a higher quality package.