jira-connector | NodeJS Wrapper for the Jira REST API | REST library
kandi X-RAY | jira-connector Summary
kandi X-RAY | jira-connector Summary
NodeJS Wrapper for the Jira REST API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Represents an issue .
- Represents a group of boards .
- Creates a new user client
- Creates a new WorkerSchema
- Creates a new project client .
- Creates a new version client .
- Create a new Filter client
- Represents the permissions scheme
- Creates a report client .
- Represents the integrity of an org
jira-connector Key Features
jira-connector Examples and Code Snippets
Community Discussions
Trending Discussions on jira-connector
QUESTION
I'm trying to query some JIRA issues using a the jira-connector
package.
I'm running into issues with the data returned not being defined until after everything else is executed in my code. I'm not sure if this is some issue with concurrency, but I can't for the life of me figure out where and how I'm messing up.
If inside the getJiraTimeEstimations
function only call the getJiraTimeEstimate
once it works just fine and I get access to the data to use further down in the program. It is when I'm trying to do it inside a map
or foreach
where I iterate over the Array.from(dataFromMaconomy.keys())
array that I seem to run into issues.
My understanding is that adding .then().catch()
in the getJiraTimeEstimate
function should be enough to stop it from continuing to run before all the calls are finished? Or am I misunderstanding how asynchronous calls work in Node and JS?
I've also tried converting it to an async getJiraTimeEstimations
and adding an await
infront of the search. But it doesn't seem to work either.
I am not populating the dataFromMaconomy
array as I'm debugging. Which is what I was trying to do with the log statement. The log statement just prints undefined
right now. But if I only call it with a single item from the rks
array then it works fine.
ANSWER
Answered 2020-Dec-17 at 20:54Giving your clarification in the comment, the getJiraTimeEstimate()
function does not return anything. Try:
QUESTION
I've recently added basic unit tests with jest and now for some reason when I run the angular app using "ng serve" my mat-icons show up as and my HttpClient calling my backend will not return any response. I am subscribed to the observable and even try to catch the empty observable with .pipe(finalize()), no response, and the network is not showing any requests being made. The terminal running ng serve also is not showing any errors.
I can confirm that when I build and serve the files through a node server for production(I know I should be using ngnx) everything works as expected. The back-end api is also responding correctly to postman and terminal curl calls.
I have a feeling it has to do with how I configured jest or something I messed up in a config file but I can't seem to figure it out. I also have no clue how this svg class="fake-testing-svg" is getting injected into the html as I cannot find it anywhere in my code.
login.component.ts
...ANSWER
Answered 2020-Jul-20 at 14:23It turns out it was in app.module.ts
QUESTION
When using the REST API, with a POST to /rest/api/2/search and using an ampersand in the search criteria of the JQL, i.e. "component = \"Research & Architecture\" "
I get the following error.
"The value 'Research %26 Architecture' does not exist for the field 'component'."
Is there a way to use the REST api without the values being encoded?
I am using postman as a client directly to the Jira REST API. I have also used a nodejs client npm package jira-connector, with the same results.
...ANSWER
Answered 2020-Apr-14 at 14:44I was able to use the JQL Search REST API to search for issues with a component containing an ampersand by encoding the &
character as %26
:
https://jira-url/rest/api/2/search/?jql=component='Research %26 Architecture'
This is one solution in case you can't find a way to avoid the values being encoded.
QUESTION
I am building a NodeJS application from where I want to get project/issues from JIRA using REST APIs provided by JIRA. My jira is running on some server ('http://example.com:8080/secure/Dashboard.jspa') and I am able to use REST APIs from POSTMAN using BASIC AUTH to get all kind of data but when I tried to log in to JIRA using REST APIs and NodeJS, I am getting some response but I am not able to understand it how I am going to use that information to call other APIs.
What I am doing is, I am passing username and password as a command-line args then I am sending those creds to login to JIRA. Then I am going to use the 'node-fetch' package to get information from REST APIs.
Below is my code:
...ANSWER
Answered 2020-Mar-12 at 13:48If you look at the Jira Rest API documentation, rest/api/2/issue/createmeta
is the end point for Get create issue metadata. It "returns details of projects, issue types within projects, and, when requested, the create screen fields for each issue type for the user. " This data is supposed to be huge since it returns the details of all projects, and all issue types within projects.
If you want to use other API just change the url to the appropriate url with the correct endpoints (documentation) and follow the documentation on what to send as the body data.
Here is one example of getting the details of one issue: Put the issueIdOrKey you want to get in the brackets
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jira-connector
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page