CARVIEW |
Navigation Menu
Projects v2 Webhook Feedback #17405
Replies: 30 comments · 82 replies
-
Thanks for adding the Projects Beta Webhooks. I want to get more information on the item being changed. Currently, it returns. "changes": {
"field_value": {
"field_node_id": "xxxxxxxxx",
"field_type": "single_select"
}
}, Information like the title of the field, the selection value and a key pair value of the other table column for that item would be nice to have. I understand there is |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 10
-
I agree that having the old value as part of the data in this webhook would make it much more useful. (Also for my use case.) |
Beta Was this translation helpful? Give feedback.
All reactions
-
@skw or @omerbensaadon are there any thoughts on sending the previous state as part of the webhook body? |
Beta Was this translation helpful? Give feedback.
All reactions
-
@MPLew-is I think that would be a great idea! Not our highest priority at the moment but if anyone else agrees, please chime in |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 16
-
I am trying to integrate with Jira, so I have limited control available and it is not easy to make a response web hook call. I want to simply know when an issue is transitioned between Currently, I just get told:
It would be great if it instead sent:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
π 44
-
π See the comment below and check out this week's changelog which includes this information on the previous and current field value β¨ |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Do you have plans to bring |
Beta Was this translation helpful? Give feedback.
All reactions
-
Agreed. This feels like a big omission. Part of what's cool about GH Projects is the ability to automate everything. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Hey folks, wanted to call out that we won't be able to do this for a bit and it has to do with how Projects are Org level and Actions are Repo level. Simply put, we don't have an elegant way to bridge the gaps between Orgs and Repos in this regard. As @MPLew-is was mentioning, rerouting the webhook to your own infra is the work around for now. We have conversations open with the Actions team but that isn't our backlog so hard to tell when something like this will be supported. It will be one day, just don't have a ton of clarity on when. Apologies in advance, I totally agree that this is a big omission. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 4 -
π 1 -
β€οΈ 2
-
Since project items can be PRs, could we add actions triggers for adding / removing a pr to/from a project? Or add it to the PR edit trigger? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Has this changed in the meantime? I wasn't able to subscribe to project v2 item changes in the action |
Beta Was this translation helpful? Give feedback.
All reactions
-
How is this still not a thing 18 months later? With classic Projects being disabled, this breaks any ability for GitHub users to have a meaningful SDLC with automation managed within the platform. At least re-enabled Classic projects until you can meet parity. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 3
-
Thanks for adding the webhooks! Perhaps Iβm misunderstanding the GraphQL API, but I have trouble using the
I get an error saying I tried to see if there was a schema preview I should use, but I donβt see that one listed on https://docs.github.com/en/graphql/overview/schema-previews either. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hey @eelco, sincerely appreciate your feedback, its been a gift! Thereβs a release coming sometime next week that should begin leveraging the newer version of the GraphQL API which may resolve some of your concerns? Hang tight, Iβll update you in this thread when it has been released |
Beta Was this translation helpful? Give feedback.
All reactions
-
β€οΈ 1
-
Is it out yet? π |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hey sorry @eelco, been on a rather long vacation, I'll ask today! |
Beta Was this translation helpful? Give feedback.
All reactions
-
hey! this should be released! Can you let me know if it looks good from your end? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @omerbensaadon, using the new API (not available through the GraphQL explorer, because itβs missing the
I will get 9 fields back, but there are more in my project and the one Iβm looking for (with the |
Beta Was this translation helpful? Give feedback.
All reactions
-
Is there any way to go from a Would be very helpful for the automation I'm building to be able to look something up in the GraphQL API and then use that to filter Webhook events - right now the IDs don't exactly match, I have to do probably-fragile processing on them to translate between the two ID formats. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Apologies if unclear, but I'm looking to go the other way in translating: given a I've been using |
Beta Was this translation helpful? Give feedback.
All reactions
-
π @MPLew-is Ah I see what happening I think the issue is that I don't think there's a way to get the corresponding |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
π Some good news, I'm shipping a fix for this soon that updates the node id types, this will affect single select and iteration fields. I'll confirm when this has been deployed. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Looks like this has shipped given that my automations broke in the last few hours π Nothing a field ID configuration update didn't take care of, thanks for getting that out! |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
@MPLew-is Yes sorry, I forgot to confirm, it did deploy π Let me know if anything else comes up π |
Beta Was this translation helpful? Give feedback.
All reactions
-
For some reason, Discord is unable to process and display project_v2 webhooks. Everything else works fine. Even though the delivery is successful, nothing gets posted in the channel |
Beta Was this translation helpful? Give feedback.
All reactions
-
π @PsychoPast Thanks for reaching out, I took a look and their docs don't specify which events they support. Looking at my outgoing deliveries everything seems fine from our end as we get I did confirm that it's not just Have you reached out to discord yet? They might be able to fix their integration and/or let you know which events they specifically support. I can check internally if we've collaborated with them on webhooks in the past. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Hey! Thanks for taking a look at the issue. That is indeed weird. I also was getting 204 responses from project_v2 webhooks triggers but I thought that the problem lied in the response. A malformed field or something. And no I haven't reached to Discord. I'm doubt that they would be helpful in any way. I'm not familiar about this matter but given the fact we append "/github" at the end of discord webhook urls when setting up a github repo webhook, doesn't that mean that you indeed have collaborated on webhooks with them to make webhook integration into their app work smoothly? Best regards :) |
Beta Was this translation helpful? Give feedback.
All reactions
-
I believe it's just something Discord has set up to parse manually to have pretty messages, they did it for Slack too. I think you'll have to wait for Discord to add support for this event. https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook |
Beta Was this translation helpful? Give feedback.
All reactions
-
Things like this are one reason Iβd love to see the decision to only use GraphQL reconsidered - in order for Discord to generate messages from webhooks with any helpful content, theyβre now going to have to set up a GitHub App installation in order to have the right credentials to go query project item information. If the webhook bodies contained a little more information in them than just GraphQL node IDs, integration with external services could be done a lot more simply. I donβt doubt Discord has the resources to implement it fairly quickly if they wanted, but thatβs quite a bit of start-up overhead if youβre building something custom like I did. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Hi, I've encountered the similar issues with GitHub Projects webhooks not triggering Discord notifications, and I believe this is a problem on the GitHub side. When making changes in GitHub Projects, such as moving an item from one column to another or creating a new column, there is no delivery recorded in the Recent Deliveries history of the webhooks management panel. In contrast, GitHub Repo webhooks are delivered normally to Discord. However, it appears that Discord side does not properly process all of these webhooks, like the delivered label changes webhooks cannot trigger the notification in Discord... |
Beta Was this translation helpful? Give feedback.
All reactions
-
Projects Beta Webhooks' project2_v2_item hooks are currently limited to Organization webhooks, and GitHub Apps with the organization_projects permission. Are there any plans to support projects_v2_item webhooks for user accounts anytime soon? Without this support, it seems that GitHub Apps that need project, project_card, and project_column notifications can no longer support user accounts that are not tied to an organization. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
Should be fixed now π |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Look out for that space! Jump! Fast |
Beta Was this translation helpful? Give feedback.
All reactions
-
Discord can't read project webhooks. π€ |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
When you input the webhook URL into github, make sure you paste it in and then add |
Beta Was this translation helpful? Give feedback.
All reactions
-
I know that info! Working others but not working projects to discord. π (Thanks) |
Beta Was this translation helpful? Give feedback.
All reactions
-
Strange... Sorry, I don't think I can really help you with that... |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Beta Was this translation helpful? Give feedback.
All reactions
-
I think you need to create the app under an organization, since that's what Projects are tied to: |
Beta Was this translation helpful? Give feedback.
All reactions
-
β€οΈ 1
-
Sorry forgot to come back. Thank you @MPLew-is, this was the problem. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Hi there! π But still, there's something I don't quite get... Projects can also be tied to users on Github, right? let me share what I was trying to pull off:
I don't know where to get an authentication method equivalent to the access token (classic) that I got from my personal account. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi, is there any way I can set up a webhook for a specific organization project? I'm only able to setup a webhook at the organization level but not per project (eg at What I would like is to assign alerts from projects to specific Slack channels (say, link webhooks from project A to slack channel A, project B to slack channel B, and so on). |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 3
-
Not that I can tell at this time - I configure all my webhooks to filter based on a project's GraphQL ID, but still receive everything under an organization. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Wish we could just trigger custom workflows. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 3
-
Did anyone already build any tools to work with that data and put it on GitHub? I am thinking about leveraging this for an "audit log" like feature to be able to follow changes in a GitHub project board and was wondering if someone maybe already did the same before. |
Beta Was this translation helpful? Give feedback.
All reactions
-
It's a little more built to trigger Slack notifications, but I built an AWS Lambda function for this here: https://github.com/MPLew-is/github-projects-webhook-receiver Might at least be a decent starting point, or Iβm happy to carve off some pieces so they can be used separately. |
Beta Was this translation helpful? Give feedback.
All reactions
-
β€οΈ 1
-
Have solution about discord webhooks? π€ |
Beta Was this translation helpful? Give feedback.
All reactions
-
Do you have plan to support |
Beta Was this translation helpful? Give feedback.
All reactions
-
Not at the moment, we would likely have to introduce user webhooks. Are you planning to write a integration to work with user-owned projects? |
Beta Was this translation helpful? Give feedback.
All reactions
-
It seems like a major oversight that there is no possible way to trigger anything when something on a project updates for projects tied to a user account. The only way to check if something has changed is to poll the GraphQL API. Will there ever be a webhook for project v2 updates tied to user accounts? |
Beta Was this translation helpful? Give feedback.
All reactions
-
@skw Hi do you have any progress on this https://github.com/orgs/community/discussions/17405#discussioncomment-2907254 |
Beta Was this translation helpful? Give feedback.
All reactions
-
π Hi @FPEekgoodX I've pitched these changes, the prioritization for this work is still under review, will let you know once it gets scheduled. |
Beta Was this translation helpful? Give feedback.
All reactions
-
@FPEekgoodX see the comment below and check out this week's changelog which includes this support β¨ |
Beta Was this translation helpful? Give feedback.
All reactions
-
How can we get webhook events for I can send events for I can not seem to send events for user actions like creating, linking or unlinking a Are my Permissions&Events not configured properly, or is this not yet possible (or planned) for Projects V2 Webhooks? Thank you |
Beta Was this translation helpful? Give feedback.
All reactions
-
π @paragon-cloud is this for a GitHubApp? @rmusick2000 The GitHub App support for |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
@skw Thank you! I am able to see the basic notifications now for projects_v2. Still can't see link/unlink, but that is consistent with the documentation. |
Beta Was this translation helpful? Give feedback.
All reactions
-
@skw for the second part of the original question, "Nor can I send events for editing, adding or deleting options in the Status field for a ProjectsV2", is there a way to send these notifications? I thought they might be included in the edit notices for a More generally, I can't seem to send notifications for any mod to any One option is to continuously poll for the current fields in the |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @rmusick2000 we do have an issue to implement
Hmmm ya that does sound expensive, under what circumstances do you need to update fields? Potentially you could only update fields when items are updated? and/or limit the polling |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @skw, yes, we can and will limit the polling as you suggest. It does increase latency, unfortunately, by adding 1 more round trip to GitHub for several common operations. Please add one vote for increasing the priority of the push notification, and thanks (again) for your answers! |
Beta Was this translation helpful? Give feedback.
All reactions
-
When a card is set as done I would like to receive a webhook with the issue along with all the fields (including custom ones), but this doesn't seem to be possible today? Is this something that will be made available or will I have to do this some other way? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @danielbrodin, currently we only return the graphql node_id, which allows you to make a query and get all the fields you need. We would like to eventually add support for changed values but this wouldn't include all other field values. A query to get all fields could look something like this (would need to add the fieldValue types you need): {
node(id: "PVTI_...") {
... on ProjectV2Item {
fieldValues(first: 1) {
nodes{
... on ProjectV2ItemFieldTextValue {
text
field {
... on ProjectV2FieldCommon {
name
}
}
}
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
All reactions
-
See the comment below and check out this week's changelog which includes this support β¨ |
Beta Was this translation helpful? Give feedback.
All reactions
-
If showing custom fields is too inefficient, would at least love to be able to see the current status of card without having to make an extra API call. A bonus would be to see the old status as well. Current status would cover 80% of the scenarios or at least you can build your automations around this |
Beta Was this translation helpful? Give feedback.
All reactions
-
See the comment below and check out this week's changelog which includes this support β¨ |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi, I've encountered the similar issues with GitHub Projects webhooks not triggering Discord notifications, and I believe this is a problem on the GitHub side. When making changes in GitHub Projects, such as moving an item from one column to another or creating a new column, there is no delivery recorded in the Recent Deliveries history of the webhooks management panel. In contrast, GitHub Repo webhooks are delivered normally to Discord. However, it appears that Discord side does not properly process all of these webhooks, like the delivered label changes webhooks cannot trigger the notification in Discord... |
Beta Was this translation helpful? Give feedback.
All reactions
-
Can someone help with this please? The query: The response: I tried all sorts of stuff like filedId, valueId, singleSelectValueId etc |
Beta Was this translation helpful? Give feedback.
All reactions
-
Found the solution myself. // this is javascript by the way // ids coming from webhook request to your api, but they are not necessarily tied to a webhook event const requestBody = { try {
} catch (error) { getData(); |
Beta Was this translation helpful? Give feedback.
All reactions
-
@skw Hi There, I was wondering who has access to this? It seems that it could help us with an integration we try to setup but we currently don't see those events in our organization. Is this something we could get access to? Thank you |
Beta Was this translation helpful? Give feedback.
All reactions
-
β€οΈ 1
-
Sorry for the late reply, org admins should have access to these hooks, or permissions can be requested via a GitHub App installtion. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Just wondering if there's a webhook per project_v2. Looking at the documentation and organization webhook settings, it seems there's no way to limit the webhook event to particular project which means the endpoint receiving webhook will receive ALL projects events and can get quite spammy in bigger organization. Actually what I'm trying to do with it is just a more powerful automation. My use case is to synchronize project status with labels. e.g. If user moves from status A to B in project I'd like to change the issue label from A to B on the repo and vice versa. Currently since the automation is not powerful enough (I think by allowing user to run custom script / GH Action style it solves majority of webhook usecase) the workaround I can think of is to set up external server to synchronize the labels <-> project status with webhook as trigger |
Beta Was this translation helpful? Give feedback.
All reactions
-
I suppose you could trigger a workflow manually, which might be the only workaround I can think of at the moment. We've been discussing projects actions internally but haven't planned any work just yet. |
Beta Was this translation helpful? Give feedback.
All reactions
-
If using workflow then it'll be 1 way synchronization from repo -> project π€ Then to synchronize projects -> repo, I guess we need to run the workflow manually? π€ |
Beta Was this translation helpful? Give feedback.
All reactions
-
π We've just added the previous and current field value directly in the webhook event when a project item and its fields are edited, removing the need to send an additional GraphQL query to understand the field information. Check out this week's changelog for more details and let us know your feedback! π |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 3
-
That's great news, and I've already started relying on this for migrating my application to GitHub Projects v2. However, IΒ discovered that when a milestone is changed, this webhook is also triggered, but doesn't contain the |
Beta Was this translation helpful? Give feedback.
All reactions
-
We're working on migrating some of the logic of the Github Projects (classic) to v2. In Github Projects (classic), we were able to determine a given card's position on the project board, and we had automations built to move cards to the top of the stack. In Github Projects v2, I'm struggling to understand how to know the position of a given item within a status. If I have a "To Do" status, and I move the item up/down within a given status, I see the webhook event
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi - I'm attempting to use the Projects v2 Item webhook, specifically the Could we please get an This would be needed for any others also attempting to sync status flows between systems I'm looking to do. (e.g. devs start development or testing and other teams like support and sales need to be notified in their systems). Otherwise, the from and to changes of the Status field are captured in this endpoint from the recent changes and allow the rest of the information to be gathered from this I'd need. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
I am using project v2. I need to be able to know when a pr inside a project changed status. In the payload i get the old and new status and more info about the use and repo, but i want to get info about the pr itself. Since project v2 does not include info about the issue or pr that was moved or changed status. i need to store the info of the pr when the pr was created. Then when the pr changes status inside the project, i need to use the node_id to get the info about that pr. It could be easily avoidable if the payload includes info about the pr or issue. {
"action": "edited",
"projects_v2_item": {...},
"changes": {...},
"organization": {...},
"sender": {...}
} |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi, I am using Projects V2 web-hooks to work around the fact GitHub Enterprise Cloud does not raise an event you can trigger a workflow for when an issue is moved between columns (statuses) on a Kanban board (GitHub Enterprise Server does). While it is great that we can raise a web-hook event when an project v2 item changes it means that in order to simply update a custom project field when an item is moved between columns we need to:
These all seems very hacky and long winded - are the any plans to introduce the Having said that, my experience so far with the web-hooks has been great. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you for this feedback and for sharing your current workaround, we have this request logged on our end. This is not currently supported given projects live at the organization level rather than repository level where events that trigger workflows live, so we'd need to implement organization-level actions. We will keep you updated on any plans for this π |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
This doesn't seem to work at all. I am not able to get any events from my webhook regarding to project actions. I created a GitHub App and included the permissions and subscribed to the events to no avail. There is another ticket opened two years ago with the same problem Can someone look into this? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @Aerex - could you provide the following information so the team can investigate further?
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Hey @rileybroughten. Sorry for the late response. Thanks for reaching back.
Owner. It is on my personal user organization. Let me know if there any more additional information I can provide. |
Beta Was this translation helpful? Give feedback.
All reactions
-
@Aerex This is likely late and I'm sure you've moved on from this, but hopefully this will be useful for someone. But I started looking into using these web hooks today and my conclusion is that |
Beta Was this translation helpful? Give feedback.
All reactions
-
Has anyone encountered the issue of the "changes" field not being populated? https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#projects_v2 As you can see, when I rename a project I should be seeing the changes field populate, but it is completely blank:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks @SprintKeyz, I was able to reproduce this and I'll open an issue internally so that we can take a look at this π . |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
π @SprintKeyz We just shipped a fix, let me know if you encounter any other issues π |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi all, We are working on a integration where we can allow an organization can allow webhooks to be configured for the task status update for all type of projects. ( both Org and user repos) Without this, It is becoming tedious to track the task updates of the induividual user's projects. Also, I could see that this an Org level webhook. It would be better if there is a repo level hook for this event. As most of our tasks would be repo specific, It would be a better enhancement. Kindly support this as this is a primary requirement of the integration that we are planning with our application. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We'd love to hear what about your experience using the Projects Beta Webhooks.
Beta Was this translation helpful? Give feedback.
All reactions