Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3 Cloud: CreateIssue assignee not working #361

Open
uncaught opened this issue Feb 18, 2025 · 0 comments
Open

v3 Cloud: CreateIssue assignee not working #361

uncaught opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels
Investigation required Points out issues that need further exploration or detailed examination.

Comments

@uncaught
Copy link

This SDK suggests that the issue assignee could be sent along when creating an issue. However, this doesn't appear to be valid.

out/version3/parameters/createIssue.d.ts

export interface CreateIssue extends Omit<IssueUpdateDetails, 'fields'> {
    // ...
    fields: {
        [key: string]: any;
        // ...
        assignee?: {
            [key: string]: any;
            id?: string | number;
        };
    };
}

I've tried numerous ways to both set no assignee and set a specific assignee, but all come back as 400:

// Unassigned:
{fields: {assignee: null}}
{fields: {assignee: {id: null}}}
{fields: {assignee: {id: -1}}}
{fields: {assignee: {accountId: null}}}
{fields: {assignee: {accountId: -1}}}

// Assigned:
{fields: {assignee: {id: "xxx-my-account-id"}}}
{fields: {assignee: {accountId: "xxx-my-account-id"}}}
{fields: {assignee: "xxx-my-account-id"}}

According to a discussion here it is not possible to set the assignee to "Unassigned" directly, so that's that, nothing you can do about it and the types don't suggest this anyway.

However, setting an explicit account id also doesn't work.

@MrRefactoring MrRefactoring self-assigned this Feb 20, 2025
@MrRefactoring MrRefactoring added the Investigation required Points out issues that need further exploration or detailed examination. label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigation required Points out issues that need further exploration or detailed examination.
Projects
None yet
Development

No branches or pull requests

2 participants