jira-rest-api

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

≯℡__Kan透↙ 提交于 2019-12-05 14:42:19
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. 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 issue: client = JIRA::Client.new( ... ) issue = client.Issue.find("PROJECT-123") available_transitions =

How to Upload files using Talend tREST?

ぃ、小莉子 提交于 2019-12-04 11:53:10
Experts, I need to upload files using Talend tREST component to Zephyr/JIRA. I do not know the format/syntax to give in httpbody section like the curl's ( -F "file=@myfile.txt" ) URL https://localhost:4000/jira/rest/zapi/latest/attachment? entityId=4783&entityType=TestStepResult BODY D:/TestResults/QPJ-707_Count_Mismatch.xls I gave the full path and file name in body section. When I run, I am getting ERROR_CODE = 500. Please help on how to give filepath/filename in the body section in tREST. I do not get enough information in Zephyr/Zapi API website. thanks in Advance - PK Now, I tried with

Create OKTA JIRA login with ruby

浪子不回头ぞ 提交于 2019-12-04 04:40:42
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 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, you could use Chrome Native Messaging for this. You should be able to do it by setting up an Application

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

淺唱寂寞╮ 提交于 2019-12-04 04:16:58
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.atlassian.greenhopper.service.sprint.Sprint@3094f872[rapidViewId=30,state=CLOSED,name=Sprint 2014-06-02

Integration of JIRA with TortoiseSVN

痞子三分冷 提交于 2019-12-03 03:55:00
问题 Could anyone specify the ways to integrate JIRA with TortoiseSVN to track the issue details? What URL should be specified in URL section, what are the other parameters needed? Is there anything you have to do on JIRA side to ensure the integration? 回答1: I had lots of problems when reading TortoiseSVN documentation on the subject. Here are my findings about the integration. To integrate Jira and TortoiseSvn, a set of instructions should be performed. This guide suppose that your jira server is

Java Program to fetch custom/default fields of issues in JIRA

↘锁芯ラ 提交于 2019-12-02 16:36:43
问题 I have developed a simple java program to fetch the data of issues/user stories. I want to fetch 'description' field of a perticular issue. I have used GET method to get response but I'm getting errors while connecting to JIRA. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; public class JiraIssueDescription { public static void main(String[] args) { try

Deserializing nested JSON string using GSON

廉价感情. 提交于 2019-12-02 04:03:13
问题 All, I have the following JSON output/string (its a response from JIRA API): { "expand": "names,schema", "startAt": 0, "maxResults": 50, "total": 1, "issues": [ { "expand": "operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields", "id": "18200", "self": "https://localhost/rest/api/2/issue/18200", "key": "LS-1111", "fields": { "issuetype": { "self": "https://localhost/rest/api/2/issuetype/3", "id": "3", "description": "A task that needs to be done.", "iconUrl":

Deserializing nested JSON string using GSON

▼魔方 西西 提交于 2019-12-02 03:18:58
All, I have the following JSON output/string (its a response from JIRA API): { "expand": "names,schema", "startAt": 0, "maxResults": 50, "total": 1, "issues": [ { "expand": "operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields", "id": "18200", "self": "https://localhost/rest/api/2/issue/18200", "key": "LS-1111", "fields": { "issuetype": { "self": "https://localhost/rest/api/2/issuetype/3", "id": "3", "description": "A task that needs to be done.", "iconUrl": "https://localhost/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype", "name": "Task",

Access JIRA API with api key without username and password

♀尐吖头ヾ 提交于 2019-12-02 02:15:16
Currently I'm accessing JIRA API in C#.Net application with username and password. But I need to access the JIRA API without entering a username and a password even without hashed username and passwords. Is there any way to create an API key and access JIRA API with that? Yes, JIRA supports OAuth for that purpose, see: https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication Unfortunately there's no C# sample code provided, but you should be able to assemble a solution from the other programming languages here: https://bitbucket.org/atlassian_tutorial

Listing All JIRA Transitions via API

浪子不回头ぞ 提交于 2019-12-01 07:34:49
I'm looking to set up smart commits in JIRA, but my developers want to know all the options for their transitions. In order to help them, I'd like to print a cheat-sheet of all transition names (I trust they are smart enough to figure out what does what from there). But when I look through the REST API documentation, I can only find a way to get the list of transitions for a particular issue (presumably via its status). Is there a way to get the list of all transitions that any ticket can take at any point in its workflow? You can get all transitions for project with /rest/api/2/project/