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

Add support for JSON-RPC Bugzilla API #96

Open
jamacku opened this issue Jul 4, 2023 · 0 comments
Open

Add support for JSON-RPC Bugzilla API #96

jamacku opened this issue Jul 4, 2023 · 0 comments
Assignees

Comments

@jamacku
Copy link
Member

jamacku commented Jul 4, 2023

Type of issue

Feature Request

Description

Red Hat Bugzilla documentation of JSON-RPC: link

Describe the solution you'd like

Example of adding an external tracker:

await fetch(`${bzInstance}/jsonrpc.cgi`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer ${bzAPIToken}`,
    },
    body: JSON.stringify({
      jsonrpc: '1.0',
      method: 'ExternalBugs.add_external_bug',
      params: [
        {
          bug_ids: [2013411],
          external_bugs: [
            {
              ext_type_url: 'https://github.com/',
              ext_bz_bug_id: `${owner}/${repo}/pull/${prMetadata.number}`,
            },
          ],
        },
      ],
      id: 'identifier',
    }),
  });
@jamacku jamacku self-assigned this Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant