jira-rest-api

Cannot create AsynchronousJiraRestClientFactory (Dependency Issue)

╄→гoц情女王★ 提交于 2019-12-10 14:01:59
问题 I previously made a restful client application in Java to mass-manipulate tickets and expedite workflow, however, I want to create a more holistic application that utilizes the actual JIRA api instead of parsing JSON in my own solution. I have a very simple code-block to create a client: public class SimpleMain { public static void main(String[] args) { try { JiraRestClient client = new AsynchronousJiraRestClientFactory() .createWithBasicHttpAuthentication(new URI("https://jira.redacted.com")

JIRA Rest API error. Unrecognized token creating a issue

廉价感情. 提交于 2019-12-09 17:51:35
问题 No luck in adding a issue via AJAX and the REST API. I can get it to work with Postmen, unfortunatly, can't get it with an Ajax request. The JSON I create is fine, the post request also. The issuetype is something I created myself, using Bug gives the same problem. See the JSON object created, my error and my code: JSON object (this is a snippet from console.log): The Error 0: "Unrecognized token 'fils5poet5': was expecting 'null', 'true', 'false' or NaN↵ at [Source: org.apache.catalina

How to get JIRA Agile issues assigned to the current sprint for the current user using the JIRA REST API?

谁都会走 提交于 2019-12-09 16:24:33
问题 I'm getting started working with the JIRA REST API. I've learned how to get all the issues assigned to the current user: rest/api/2/search?jql=assignee=currentuser() ...now I am trying to filter those by the current sprint. I think this functionality is provided by the JIRA Agile (Greenhopper) plugin, but I can't find any documentation for it. I came across some interesting data which appears to be the identifier for the sprint that the issue is assigned to: customfield_10005: [ "com

How to create an issue in jira using java rest api

巧了我就是萌 提交于 2019-12-08 11:33:19
问题 I have checked almost every link but could not find the proper solution for it. I need to create an issue in JIRA using java rest api. Code :- import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import org.codehaus.jettison.json.JSONException; import com.atlassian.jira.rest.client.api.JiraRestClient; import com.atlassian.jira.rest.client.api.domain.BasicProject; import com.atlassian.jira.rest.client.api.domain.Issue; import com.atlassian.jira.rest.client

Create New Users using JIRA REST API

最后都变了- 提交于 2019-12-08 09:12:20
问题 I am trying to create new users using JIRA REST API. However the post method syntax description is empty when I am checking the REST documentation. Does anyone know the JSON syntax and the REST handle for creating new users? 回答1: The JSON Object to use is: { "name":"username", "password":"****", "emailAddress":"username@local", "displayName":"user name", "notification":"false" } 回答2: The user creation via REST for JIRA installed version or on-demand version is available using the rest handle

Connecting Google spreadsheet to Atlassian JIRA

ぐ巨炮叔叔 提交于 2019-12-08 08:45:42
问题 I want to display my JIRA issues in a Google spreadsheet using Google Apps script but first i need to establish a connection with JIRA, so i went through these tutorials only to find out that the opposit is possible (JIRA connects to other applications), therefore i want to ask if there's a way to connect Google Sheets to JIRA and in that case how to get the Authentication Token ? 回答1: Request token from JIRA: Code.gs function requestJIRA_Token() { var baseUrl = 'Put Base URL to JIRA here';

Unable to edit custom_field(Jira-Python)

喜你入骨 提交于 2019-12-08 07:53:29
Unable to update fields for an issue in Jira-python. When I look at the raw data in JSON. It is under: {fields:{'customfield_10000':'some text'} but when I tried: issue.update(fields={'customfiled_10000':'edited'}) issue.update({'customfiled_10000':'edited'}) issue.update({fields:{'customfiled_10000':'edited'}}) issue.update(customfiled_10000='edited') All gave me response text = {"errorMessages":["Internal server error"],"errors":{}} Tried added +"0000" in Client.py data['started'] = started.strftime("%Y-%m-%dT%H:%M:%S.000%z")+"+0000" still not fixing the issue. Please Help~!! New findings ,

Unable to edit custom_field(Jira-Python)

混江龙づ霸主 提交于 2019-12-08 05:45:32
问题 Unable to update fields for an issue in Jira-python. When I look at the raw data in JSON. It is under: {fields:{'customfield_10000':'some text'} but when I tried: issue.update(fields={'customfiled_10000':'edited'}) issue.update({'customfiled_10000':'edited'}) issue.update({fields:{'customfiled_10000':'edited'}}) issue.update(customfiled_10000='edited') All gave me response text = {"errorMessages":["Internal server error"],"errors":{}} Tried added +"0000" in Client.py data['started'] = started

How to change transitions to a issue in ruby, using jira-ruby gem?

跟風遠走 提交于 2019-12-07 07:05:03
问题 I'm trying to access jira in ruby with the Jira-ruby gem (https://rubygems.org/gems/jira-ruby), but i can't find how to change the transitions. I can only change it using the REST-api? There is a Transition class (http://rubydoc.info/gems/jira-ruby/0.1.8/JIRA/Resource/Transition), but i don't know how to deal with it. 回答1: The REST API docs say that you POST to /issue/{issueIdOrKey}/transitions to transition an issue from one status to another. First fetch the available transitions for an

Create OKTA JIRA login with ruby

拥有回忆 提交于 2019-12-05 21:03:59
问题 I need to authenticate to JIRA using Okta via REST, how can I do that on ruby? It is possible? I never did that before, I just only want to get an attached file from a ticket in JIRA 回答1: It turns out that you can just send the JSESSIONID cookie from a logged-in user (such as yourself) to the REST API. You can get the cookie manually from the browser, or write a browser extension to get the cookie and then invoke your Ruby script with that cookie's value as a command-line argument. For Chrome