jira-rest-api

How to use variable extracted in JSON path extractor for further steps of scenario?

不羁岁月 提交于 2020-01-15 07:28:06
问题 I have created one scenario in Jmeter where i am loging in. (For this scenario i am using REST APIs) For this i took one "HTTP Header Manager" , "HTTP Request Sampler". After login i am extracting authentication token which is generated automatically. Using this auth token i am trying to add some values in application. For this i used: 1) jp@gc - JSON Path Extractor 2) Debug Sampler On execution, i can see auth token capture in "View Results Tree" listner. But adding user (second HTTP Request

How to Upload files using Talend tREST?

 ̄綄美尐妖づ 提交于 2020-01-13 05:20:07
问题 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.

Object of class stdClass could not be converted to string PHP issue

社会主义新天地 提交于 2020-01-04 04:12:04
问题 Im pulling info from Jira Atlassian API, ive worked with other code and it works fine and i change it to json and all the info gets returned as an object. However in this case i get this server error: PHP Catchable fatal error: Object of class stdClass could not be converted to string in /usr/local/vhosts/999/webspace/httpdocs/mysite/filters1.php on line 411 Now here is the code im trying to run: $username = 'xxx@gmail.com'; $password = 'xxxxxxx'; $url = 'xxx.atlassian.net/rest/api/2/search

Access to Jira Accouncement Banners in Remote API

浪子不回头ぞ 提交于 2020-01-02 15:15:12
问题 I'm working on an application that has tight integration with our Jira instance, but has completely separate pages. We have some Jira maintenance coming up and I wanted to be able to retrieve any current Jira Announcement banners that are being displayed and pull them into these stand-alone pages. I looked through the API documentation and I couldn't find anything that would point to being able to load this data, but I wanted to see if anyone had figured out how to do this. I am running Jira

Json does not contain a definiton for 'stringify'?

感情迁移 提交于 2019-12-25 19:13:11
问题 I am trying to update a JIRA issue using Visual Studio 2015, Microsoft Razor, and C# with Json.Net 10.0.2. The code is: public String updateJiraIssue(object objJira2) { JiraService.open("PUT", JiraUrl + "/rest/api/2/issue/NPI-24"); JiraService.setRequestHeader("Content-Type", "application/json"); JiraService.setRequestHeader("Accept", "application/json"); JiraService.setRequestHeader("X-Atlassian-Token", "nocheck"); JiraService.setRequestHeader("Authorization", "Basic " +

Using node.js to fetch json data from jira using the jira-connector library not working when deployed in heroku

被刻印的时光 ゝ 提交于 2019-12-25 03:54:07
问题 As mentioned above, I fetched data and displayed it in a get request to retrieve data from server and display it in JSON format, I used this library https://www.npmjs.com/package/jira-connector , whenever i locally fetch data it works and displays the JSON data but when I deploy it in Heroku web server ( example.herokuapp.com ), the fetched data is not displayed at example.herokuapp.com/jiraWIPCRs (empty data / null) and in http://localhost:2000/jiraWIPCRs the data is displayed. const base64

JRJC is throwing NoClassDefFound exceptions

人走茶凉 提交于 2019-12-24 05:46:10
问题 I am trying to use Jira Rest Java Client in my project. But not able to connect to my installed jira. While using the below code snippet: JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory(); JiraRestClient restClient =factory.createWithBasicHttpAuthentication(serverURI, "praveen", "Jira@123"); I am facing an error as stated below: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/nio/NHttpMessageParserFactory at org.apache.http.impl.nio.conn

Get a list of users from Atlassian's Cloud / On-Demand Service

旧街凉风 提交于 2019-12-24 00:45:37
问题 I'm trying to pull a list of users from our Atlassian Confluence/Jira instance. However I'm struggling to find good documentation on what REST services are available, and it seems the SOAP services are deprecated. The following code does get results, but we have over 100 users, and this returns 0. if(-not ($credentials)) { #put this here so I can rerun the same script in the same IDE session without having to reinput credentials each time $credentials = get-credential 'myAtlassianUsername' }

Access JIRA API with C# using AccessToken

邮差的信 提交于 2019-12-23 12:34:50
问题 I have created AccessToken using https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication tutorial and could connected and get the data from jar file. I need to access it with c# app. I tried following code but it wasn't working. var request = (HttpWebRequest)WebRequest.Create(apiUrl); request.Method = "GET"; request.Headers.Add("Authorization", "Bearer " + API_Access_Token); var response = (HttpWebResponse)request.GetResponse(); string html = string.Empty;

How to add a comments to jira issue using rest api

北城余情 提交于 2019-12-22 12:32:09
问题 Refered AnotherJiraClient code found in nuget package Refered this https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Add+Comment to add a comment. var request = new RestRequest() { Resource = ResourceUrls.Comment(), RequestFormat = DataFormat.Json, Method = Method.POST }; request.AddBody(addComment);//{"body":"Something"} return Execute<BasicIssue>(request, HttpStatusCode.Created); But always returned with status not found? How to add comments using Jira REST API? 回答1: