graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Error message: "This project item doesn't belong to correct owner." project (beta)

Open ramonmulia opened this issue 2 years ago • 4 comments

When I try to call addProjectNextItem mutation to create a card into the board (beta) that has a reference to an issue or PR from another organization, the api return an error This project item doesn't belong to correct owner.

There are some opened questions in the community regarding this issue:

https://github.community/t/error-this-project-item-doesnt-belong-to-correct-owner/221889 https://github.community/t/adding-pr-from-one-org-to-a-project-board-in-another-org/231085

It looks we can do it just using the UI. it would be great if we could do it using the API too.

ramonmulia avatar Mar 04 '22 12:03 ramonmulia

Thanks for reaching out. It should not be possible to add an issue|pr from the other org to the project. It is concerning the claim that:

It looks we can do it just using the UI. it would be great if we could do it using the API too.

I am FR and I will have a look at it.

lukewar avatar Mar 21 '22 13:03 lukewar

Investigation summary:

It is indeed possible to add items via web when pasting a URL. This behaviour is not encouraged and lack of API support is by design. For more context: https://github.com/github/memex/issues/3253#issuecomment-830091875

We will treat it as feature request (and try to get funding for it) and I am not going to handle it as part of First Responder shift.

lukewar avatar Mar 21 '22 13:03 lukewar

https://github.com/github/memex/issues/3253#issuecomment-830091875

This appears to be a link to an internal repository - FYI

dlorenc avatar Mar 21 '22 14:03 dlorenc

This would indeed be a great feature to have. Our use case is that we run 4 fairly large open source projects, and have 5 github orgs (the 5th being for central services and repos related to all 4 apps). We'd like to have one central project to manage all issue/pr todos in Github.

Currently we use an Azure Board with some GH actions integration, but going outside of GH is a bit of a pain.

Qstick avatar Mar 21 '22 23:03 Qstick