Connecting Nodejs to Jira server

Shachar Ovadia July 4, 2021

Hey Guys,

I'm trying to create a filter throught Nodejs,

I'm Getting 401 / 402... 

Also, i've seen so many examples of Jira connector / JiraClient for Jira cloud, but haven't seen an example for jira server. am i missing something ?, 

My code in this link below (gitHub), thanks !.

https://github.com/Shachar297/jira-filter/blob/main/filter.js

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2021

Hi @Shachar Ovadia , 

Welcome to the community, 

Does config.host same as localhost:8080 ? 

Shachar Ovadia July 4, 2021

Hi, thanks !

{    "type" : "http",    "host" : "localhost",    "port" : "8080",    "username" : "jira.username",    "token" : "jira.json.token",    "password" : "jira.json.password",    "version" : "2.0.alpha1",    "userAgent" : "jira.json.useragent"}

this is the config,json, ofcourse i edited my login details.

Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 5, 2021

okay, could you verify you auth parameters via postman or curl ? 

Shachar Ovadia July 5, 2021

It works perfectly on jira cloud, 

jira server has an auth problem, but actualy now i am getting error code 500 while trying to log-in jira instance (IM AN RUNNING JIRA VIA DOCKER).

Suggest an answer

Log in or Sign up to answer