jira-rest-api

Does the JIRA REST API support querying a list of labels?

岁酱吖の 提交于 2021-02-20 04:42:40
问题 I see the is the ability to get all components of a project by doing /project/[projectkey]/components but I don't see any capability or documentation on how to get the list of labels that are available for a project (something like: /project/[projectkey]/labels Does the JIRA REST API support querying the list of labels available on a project? 回答1: Just to clarify, labels (at least the built-in JIRA ones) are global entities so they can be attached to any Issue in any Project. As to your

How to create an internal comment on a jira issue using the JIRA Cloud REST API

Deadly 提交于 2021-02-20 04:11:38
问题 It's really hard to find a clear answer about how to create a comment on an issue which is internal only. 回答1: The JIRA Cloud REST API Documentation specifies the following schema for setting properties on comments when creating or updating a comment on an incident https://docs.atlassian.com/jira/REST/cloud/#api/2/issue/{issueIdOrKey}/comment-addComment "properties": { "type": "array", "items": { "title": "Entity Property", "type": "object", "properties": { "key": { "type": "string" }, "value

Unable to PUT comment to Jira with Javascript using REST API

大城市里の小女人 提交于 2021-02-11 13:11:26
问题 I'm trying to update a jira with a new comment through JavaScript. I can do this all day long with cURL but using javascript is proving more challenging. I was able to call the Jira API for a GET request for a key so I know my headers/authentication is working. Problem is my data. I don't see what I'm doing wrong to format the JSON string with the comment. Here's what I have so far: $.ajax({ type: "PUT", url: "https://jira.domain.com/rest/api/2/issue/TEST-113", dataType: "json", headers: {

Unable to PUT comment to Jira with Javascript using REST API

混江龙づ霸主 提交于 2021-02-11 13:05:34
问题 I'm trying to update a jira with a new comment through JavaScript. I can do this all day long with cURL but using javascript is proving more challenging. I was able to call the Jira API for a GET request for a key so I know my headers/authentication is working. Problem is my data. I don't see what I'm doing wrong to format the JSON string with the comment. Here's what I have so far: $.ajax({ type: "PUT", url: "https://jira.domain.com/rest/api/2/issue/TEST-113", dataType: "json", headers: {

Unable to PUT comment to Jira with Javascript using REST API

我只是一个虾纸丫 提交于 2021-02-11 13:04:34
问题 I'm trying to update a jira with a new comment through JavaScript. I can do this all day long with cURL but using javascript is proving more challenging. I was able to call the Jira API for a GET request for a key so I know my headers/authentication is working. Problem is my data. I don't see what I'm doing wrong to format the JSON string with the comment. Here's what I have so far: $.ajax({ type: "PUT", url: "https://jira.domain.com/rest/api/2/issue/TEST-113", dataType: "json", headers: {

How to send a file using http request connector in mule4

倖福魔咒の 提交于 2021-02-08 06:35:34
问题 I am trying to add attachments to JIRA issue using JIRA rest api. I am using mulesoft to develop this flow. But I am not able to figure out how to send a file using request connector in mule 4. JIRA only accepts file in the form of multipart content type. I went through some of the documentation and it seems that till mule 3 using set attachment we can do this. In mule 4 dataweave is used to achieve this functionality but i am not able to find working code that can be used to implement this.

How to link Jenkins build information with JIRA issue

帅比萌擦擦* 提交于 2021-01-28 10:43:56
问题 I am looking for an API to add build information to JIRA issues. My CI is Jenkins. I would assume it would behave in the same manner as Bamboo builds I have been searching in here: https://developer.atlassian.com/cloud/jira/platform/rest/ https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/ https://jenkinsci.github.io/jira-steps-plugin/ and I haven't found anything. Is this feature reserved for Bamboo? 回答1: I think you need to install jira plugin and that will enable you to use JIRA

How to link Jenkins build information with JIRA issue

[亡魂溺海] 提交于 2021-01-28 10:42:40
问题 I am looking for an API to add build information to JIRA issues. My CI is Jenkins. I would assume it would behave in the same manner as Bamboo builds I have been searching in here: https://developer.atlassian.com/cloud/jira/platform/rest/ https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/ https://jenkinsci.github.io/jira-steps-plugin/ and I haven't found anything. Is this feature reserved for Bamboo? 回答1: I think you need to install jira plugin and that will enable you to use JIRA

Jira user creation via REST results in 401 - This resource requires WebSudo

自古美人都是妖i 提交于 2021-01-28 03:05:41
问题 I'm attempting to write a PowerShell script that will automate the process of adding new user accounts to our Jira instance. I've provided my code but I'm honestly not even getting to that point as I am receiving a 401 error: This resource requires WebSudo. I have seen these two posts on the Jira support forum but it's not clear to me how I could adapt the code to get and then apply it to my REST call. I would be fine with changing this to use the .Net WebClient class if that would make all

Jira user creation via REST results in 401 - This resource requires WebSudo

六月ゝ 毕业季﹏ 提交于 2021-01-28 01:00:10
问题 I'm attempting to write a PowerShell script that will automate the process of adding new user accounts to our Jira instance. I've provided my code but I'm honestly not even getting to that point as I am receiving a 401 error: This resource requires WebSudo. I have seen these two posts on the Jira support forum but it's not clear to me how I could adapt the code to get and then apply it to my REST call. I would be fine with changing this to use the .Net WebClient class if that would make all