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
366 stars 49 forks source link

getCreateIssueMeta API removed/replaced in v9.0.0 #252

Closed spmiller closed 1 year ago

spmiller commented 1 year ago

Hi there,

Thank you for this library. It has proved useful for us when interacting with our local Jira server instance.

Our company recently upgraded to Jira v9.4.3 and we stumbled across this API removal/replacement: https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html

The suggested fix, "Return a list of fields given a project and an issue type", would be a drop in replacement for our usage.

Can we help with adding support for this new endpoint? I haven't contributed to this library before so would need some pointers on how to add an API that could only be accessed if the Jira server was running above a certain version.

Thanks!

MrRefactoring commented 1 year ago

Hello @spmiller! Currently, we are not supporting standalone server instances at all and not planning to do it because EOL for this code is 11 months. But you can send a raw request for your server like this:

import { BaseClient } from 'jira.js';

const client = new BaseClient(<config>);

client.sendRequest(<request config>); // await it, or use callback for getting a response
spmiller commented 1 year ago

Hi @MrRefactoring, thanks for your response. The licensing situation for on-premises Jira is less than ideal. We have had to convert to a datacenter license which is considerably more expensive.

Thank you for giving me a workaround -- we'll use that instead. I appreciate your quick response!