Skip to content

Issue creation via api with an user from a different team is incomplete #34859

Open
@kim2048

Description

@kim2048

Description

Hello,
I have a strange behavior when I try to create an Issue via the api (POST /repos/{owner}/{repo}/issues, auth via token). The setup looks like this:

organization
  repos
    repoA
    repoB
  members
    userX
      role: Member
      accessToken: write:issue
  teams
    teamA
      repoA
    teamB
      userX
      repoB

When I try to create an issue (with title,body,labels,assignees) with the access token of userX in repoA the following happens:

The Issue will be created but neither labels or assignees are applied. No errors in the response. In repoB everything works as expected, also when I add userX to teamA.

Should userX be able to create issues in repoA? Why is the issue incomplete?

Gitea Version

1.23.8

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I don't know

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions