Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 2

Github API: how to get issues since create time

Solved! Go to Solution.

Refering the document, since works for last update https://developer.github.com/v3/issues/#list-issues

Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

 

I want to have since on "create time". there is sort option but I don't think if that will help. 

 

Use case: Update can bring unintended issues as well because update is triggered on any update (issue close or assignee removal etc.) which are likely to happen over a period unintensionally. For example, when a assignee leaves the repo, an update event is triggered autoatically and hence now all the issues pointed to to that assignee are new issues irrespective of their created time.

 

1 Reply
Solution
Community Manager
Message 2 of 2

Re: Github API: how to get issues since create time

Hi @shahp00ja,

There is not a built in filter to the List issues v3 API endpoint that does exactly what you're looking for. Your best bet would be to pull all issues that fit your criteria as close as possible and then use post-processing to filter issues in the JSON by the created_at property in the output.

 

Hope this helps!