Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Connecting Nodejs to Jira server Edited

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

Hi @Shachar Ovadia , 

Welcome to the community, 

Does config.host same as localhost:8080 ? 

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.

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

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
TAGS
Community showcase
Published in Confluence

👁‍🗨 Confluence Team planning dashboard_Atlympics 🌈

Hi Atlassian's, How is your journey with #Atlympics 2021 so far....excited! Me too, same excitement. Here's my typical team planning and vision dashboard which I used to share to my management and ...

93 views 1 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you