MrRefactoring / jira.js

A JavaScript/TypeScript wrapper for the JIRA Cloud, Service Desk and Agile REST API
https://mrrefactoring.github.io/jira.js/
MIT License
349 stars 46 forks source link

Calling the methods #230

Closed GildedHonour closed 1 year ago

GildedHonour commented 1 year ago

In documentation it's:

  const projects = await client.projects.getAllProjects();

On the other hand:

The algorithm for using the library:

client.<group>.<methodName>(parametersObject);

Shouldn't has it been const projects = await client.projects.get(); then?

My question is: how do I delete a webhook or multiple webhooks?

client.webhooks.delete(1); //single value client.webhooks.delete([44, 55, 99]); //array

Is this correct?

GildedHonour commented 1 year ago

And do I get a list of active webhooks?

client.webhooks.get()

or

client.webhooks.getAllWebhooks()

?

GildedHonour commented 1 year ago

got it