go-jira icon indicating copy to clipboard operation
go-jira copied to clipboard

feat(issue): add statuscategorychangedate

Open daveoy opened this issue 1 year ago • 2 comments

What type of PR is this?

  • feature

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

daveoy avatar Dec 06 '23 21:12 daveoy

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

andygrunwald avatar Dec 07 '23 09:12 andygrunwald

@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

aechweeks avatar Jan 11 '24 17:01 aechweeks

@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.

andygrunwald avatar Jan 14 '24 08:01 andygrunwald

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

aechweeks avatar Jan 16 '24 13:01 aechweeks

Thanks all.

andygrunwald avatar Jan 16 '24 15:01 andygrunwald

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

aechweeks avatar Jan 16 '24 15:01 aechweeks