You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently easy to lose track of items that we think someone should be working on, but have actually just been sitting idle for weeks without a clear party responsible for taking next steps. To make such cases easier to spot in GitHub Project boards, we'd like to add the ability to add an auto-populated field in a project's items displaying how long it has been since each one changed status. There's no built-in GitHub Projects feature for this, and I've had no luck finding an existing workflow in the GitHub marketplace for this, but it looks like it should be feasible to implement.
A/C:
Create a workflow to iterate over each item in one or more specified projects and update a specified number field to contain the number of days since the item's status last changed.
The field name and list of projects should be input parameters.
The workflow should be packaged so as to allow listing in the GitHub marketplace (this feels like it would be generally useful to a lot of people).
Calculate the number of days since that event's "createdAt" time.
Send an update for the value of the target number field in the project item.
There are very similar events available via the REST API, although the documentation implies that these are only for "Classic" Projects, which were specific to individual repositories.
Switching to an event-driven approach won't work either, as the only project-related events that can trigger workflows are for "classic" projects, not modern "v2" projects.
There is a workaround in https://github.com/orgs/community/discussions/49602#discussioncomment-6768032 which basically scrapes the status change timeline from each issue's HTML page. Hacky, but could work if we really want it before they get around to fixing the API bug. Might hit problems in longer-running issues where part of the issue history is collapsed until you click to load and display it.
It's currently easy to lose track of items that we think someone should be working on, but have actually just been sitting idle for weeks without a clear party responsible for taking next steps. To make such cases easier to spot in GitHub Project boards, we'd like to add the ability to add an auto-populated field in a project's items displaying how long it has been since each one changed status. There's no built-in GitHub Projects feature for this, and I've had no luck finding an existing workflow in the GitHub marketplace for this, but it looks like it should be feasible to implement.
A/C:
I think the way to implement this is via the GraphQL API:
There are very similar events available via the REST API, although the documentation implies that these are only for "Classic" Projects, which were specific to individual repositories.
Useful references:
The text was updated successfully, but these errors were encountered: