jira-api | jira api implementation | Software As A Service library
kandi X-RAY | jira-api Summary
kandi X-RAY | jira-api Summary
jira api implementation
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Delete worklog for an issue
- Create worklog for an issue
- Update worklog for an issue
- Execute query .
- Post a file .
- Send PUT request .
- Set the validate query
- Set jQL .
- Post request .
- Get information about a project
jira-api Key Features
jira-api Examples and Code Snippets
Community Discussions
Trending Discussions on jira-api
QUESTION
I'm trying to fetch all issues in JIRA for all projects. When doing the call one at a time, it works perfect. When trying to run it in a for loop I'm prompted with a 400 Client error.
The way that works:
...ANSWER
Answered 2021-Apr-22 at 11:29I found the very simple solution.
In this snippet: results = jira_instance.jql(f"project = {key})", limit = 1000, fields=["issuetype", "status", "summary"])
The )
after {key}
was not supposed to be there.
Thank you for the help
QUESTION
I am trying to create a JIRA plugin so that whenever an Issue is created, its posted to Kafka cluster. A sample listener code works fine. However when I add Maven dependency for Kafka, the plugin fails to load with below error.
...ANSWER
Answered 2020-Oct-05 at 11:01Finally, I was able crack down the problem. Here's what I did.
- Removed kafka-streams dependency which wasn't really required.
- Kept
provided
for all the dependencies - Since JARs need to be available at runtime. I added them to plugin>execution> configuration>includeArtifactIds so that JARs are exported to the runtime environment
- This is important. I Experimented with different versions of Kafka. Since the JIRA version I was using, was 8.5.4 (released couple of years back), I found versions of other JARs released during/just before the same time period & used those.
- I faced runtime issues for some missing classes. I added those artifact Ids in plugin>execution>configuration>includeArtifactIds
Now my final POM looks like below.
QUESTION
I'm using the atlassian rest API and creating issues through it. For accessing the API I'm using the JIRA-API-Wrapper see: https://pypi.org/project/jira/.
In my application I'm uploading a bunch of tickets. Due to performance reasons I'm using concurrent.futures. The tickets are uploaded via the following code:
...ANSWER
Answered 2020-Jul-29 at 15:03I haven't used jira-python myself. I wrote my own python client that I've been using for years. I'll have to give this a try myself.
According to the documentation to create bulk issues: https://jira.readthedocs.io/en/latest/examples.html#issues
QUESTION
[1] I am having a hard time finding the right JIRA SDK version. I want this StatusCategory
class, but I do not find the right jar file containing it.
[2] I downloaded the Atlassian JIRA SDK according to their description, but I do not find the jar file in there. Maybe I looked wrong?
https://marketplace.atlassian.com/apps/1210950/atlassian-plugin-sdk-windows/version-history
[3] I also tried to find the JAR file using mvnrespository.com
, but no luck, all dependencies are scoped with provided
.
https://mvnrepository.com/artifact/com.atlassian.jira/jira-api
[4] Previously, I used an old version of the JIRA API, which worked, but it does not contain the StatusCategory
class, which I want.
ANSWER
Answered 2020-Apr-15 at 20:35It works by going down the route [2].
You create a JIRA plugin using their archetype generator by invoking atlas-create-jira-plugin.bat
.
Let /
be the installation folder of the JIRA SDK. You use the settings.xml in /apache-maven-3.5.4/conf/settings.xml
and use /repository
as your m2 repository. You can override these settings per-project in IntelliJ.
QUESTION
i am actually analyzing JIRA for my company regarding the functionalities and the different APIs. At the Atlassian Homepage i found two official provided APIs (JAVA API or JIRA REST API).
My further intentions are to program an interface between my stand-alone application and JIRA. The idea is for instance to control the user-management (add, delete, modify user, etc.), project-management (create project, delete, etc.) and other things from this application. Therefore i need a way to interact with JIRA. Normally i would avoid the REST API and prefer the JAVA API, because other interfaces are even managed by the JAVA API, but i can't find any examples for connecting, adding or modifying workItems in JIRA. I have just found the java api documentation.
https://developer.atlassian.com/jiradev/jira-apis/java-api-policy-for-jira
Would you suggest only the JAVA REST API or are there any good examples for the JAVA API?
Thanks a lot!
...ANSWER
Answered 2017-Jan-16 at 10:05It really depends on what you are trying to achieve. The Java API is mostly used to build Jira plugins, while the REST API is used when you want to integrate external applications.
In your case the normal choice would be the REST API.
QUESTION
I didn't find any question that describes how to do server-to-server authentication with Jira API so I'm posting this QA-style. This solution assumes jira cloud but probably translates to other setups as well.
If you are building a webapp and want users to authenticate as themselves, you should look at OAuth as discussed here: Access JIRA API with api key without username and password
But if you want a "service-account"/"bot" account on your server to interact with Jira API as "itself", here is how...
...ANSWER
Answered 2019-Jun-04 at 09:38Reference: https://confluence.atlassian.com/cloud/api-tokens-938839638.html
First you (or site admin) needs to create the bot account. Then log in to the account and create an API token from here (assumes Jira cloud): https://id.atlassian.com/manage/api-tokens?_ga=2.69222547.2064924674.1559628016-830461555.1535725383
Then you can use [user-email]:[auth-token] as user/password for basic auth. Examples:
Curl
QUESTION
I have a problem. I search on the internet and countn't really find right answear. It started in my project for JIRA plugin. Then I make new project and add 1 by 1 dependecys to check where the problem is. I get the following error.
...ANSWER
Answered 2019-Sep-26 at 14:39Well find answer by myself finally. Looked into dependency documentation and I change version and add scope provided.
In case anyone else will have the same issue as me, here is what you need to do: change dependency with this one. It fixed problem for me.
QUESTION
Using python requests session I can connect to JIRA and retrieve issue information ...
...ANSWER
Answered 2017-Nov-24 at 14:45Found the solution! I had two problems:
1) The actual syntax structure should have been:
QUESTION
I'm using atlassian's maven in my project and want to implement tests in spock framework. I have a problem with Mock
classes from maven (for example class Issue
- it has some private value like key
or summary
and there is not method like setKey
and setSummary
).
I want to Mock()
Issue
object, set there some value and then get it (there is getKey()
and getSummary()
).
My code looks like:
...ANSWER
Answered 2017-Sep-28 at 10:44Here's how to test returnIssueKeyWithPrefix
only:
QUESTION
I am using React as frontend and REST API as backend, my REST is issuing http only Cookie what i am storing on frontend and using on every REST request, for example of code, Atlassian JIRA have auth like that , now i want to migrate that solution from REST to GraphQL, and if authorisation on GraphQL side is already solved problem (only Apollo have both Cookie and JWT auth mechanisms, not to mention native implementations), i still can't figure out how to issue Cookie/JWT from GraphQL side.
Is there possibility to provide me cookie from GraphQL at all? Question is how GraphQL can set new cookie on client? Is something like set-cookie header possible?
...ANSWER
Answered 2017-Sep-03 at 13:37For passing a pre-existing token into a GraphQL query or mutation, you only need to assign the token to the variables
object inside your query/mutation.
Here is an example using Apollo's graphql
Higher Order Component, and extracting a token from the Redux Store. Here I'm destructuring a queryParams
branch that works with the library react-router-redux
to automatically extract and save any query params on the active url, to the redux store.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jira-api
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
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