jira-rest-api

Access JIRA API with api key without username and password

青春壹個敷衍的年華 提交于 2019-12-20 03:44:14
问题 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? 回答1: 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

How to get start and end dates of a sprint using jira api?

a 夏天 提交于 2019-12-14 02:57:35
问题 Below url is giving all the information except start and end dates of a sprint . http://jira.example.com/rest/api/2/search?fields=assignee,key,summary,worklog,timeoriginalestimate,aggregatetimespent,&jql=project=BLAH+AND+sprint=57 回答1: To get dates from active sprint: url = 'https://www.example.com/rest/agile/1.0/board/{rapidViewId}/sprint?state=active' And closed: url = 'https://www.example.com/rest/agile/1.0/board/{rapidViewId}/sprint?state=closed' You could use the same also to get

WEBHDFS REST API to copy/move files from windows server/local folder/desktop to HDFS

余生颓废 提交于 2019-12-13 16:04:51
问题 Using WEBHDFS REST API calls can i transfer or copy the files from Windows machine(i.e. windows server or windows local folder or desktop) to Hadoop-HDFS file system? If yes any sample command info? I have tried and i was able to do using Windows->(using ftp)-> Linux directory -> (using webhdfs) -> HDFS and this is two step process and i am looking for one step process directly from Windows -> (webhdfs) -> HDFS. I referred in https://hadoop.apache.org/docs/r1.0.4/webhdfs.html for helpful info

JIRA rest api to fetch the activity stream

大憨熊 提交于 2019-12-13 15:14:01
问题 I am trying to get activity stream of my jira instance using the below api and it is not working , can anybody point me in the right direction ? 回答1: You should check this page out: https://developer.atlassian.com/docs/atlassian-platform-common-components/activity-streams/consuming-an-activity-streams-feed The Atom feed of the activity stream works well only if you also log in in your feed reader. 回答2: Here is an example of consuming the activity stream through the Jira API using Basic

Jira Python: Syntax error appears when trying to print

喜欢而已 提交于 2019-12-13 09:47:18
问题 from jira.client import jira options = {'server': 'https://URL.com'} jira = JIRA(options, basic_auth=('username', 'password')) issues = jira.search_issues('jqlquery') for issue in issues: print issue I want to print the output of the jql query.However, getting syntax error on the last line "issue". 回答1: The way to print the issue keys to your command prompt is: from jira.client import jira options = {'server': 'https://URL.com'} jira = JIRA(options, basic_auth=('username', 'password')) issues

Strange Angular Rest call behaviour

﹥>﹥吖頭↗ 提交于 2019-12-13 03:17:25
问题 I use Angular to make a call to Atlassian JIRA's REST API. Angular is used in the context of an ionic-framework app on a device. A curl as curl -X POST 'https://url' -H 'Accept: application/json, text/plain, */*' -H 'Authorization: Basic a2someStuff' -H 'Content-Type: application/json' --data-binary '{"transition": {"id": "761"}}' Works and produces the desired result. However if I perform the query using regular angular curl -X POST 'https://url' -H 'Accept: application/json, text/plain, */*

How to get a user by email in JIRA Script Runner

扶醉桌前 提交于 2019-12-12 19:24:23
问题 When writing a Groovy script for JIRA Script Runner, how do you get a user, or just their username, given their email address? It seems that you're supposed to use the findUsersByEmail method in the UserSearchService interface. https://docs.atlassian.com/jira/7.0.2/com/atlassian/jira/bc/user/search/UserSearchService.html But how do you get an instance of this class? Related question: How to get a user by email in a JIRA plugin. The difference is that question is about a plugin, and my

Worklog entries of an JIRA-user needs to be fetched

梦想的初衷 提交于 2019-12-12 04:55:51
问题 I have 15 usernames with me, I need to pull worklog entries of these users and manipulate it from JAVA client Below are the jar files am using to connect JIRA api and fetch values The code is pasted below public class JiraConnector { JiraRestClient jira; public JiraConnector() throws URISyntaxException { String url = prop().getUrl(); String userName = prop().getUser() ; String password = prop().getpwd() ; JerseyJiraRestClientFactory clientFactory = new JerseyJiraRestClientFactory(); jira =

Passing a Hyperlink to JIRA 'description' field using R

随声附和 提交于 2019-12-12 04:41:52
问题 I am trying to pass an hyperlink to JIRA description field like this SharePoint Link using R but ending up displaying this <a href='somesite.com/sites/site/Documents/DocFolder/fileName.ext' target='_blank'>SharePoint Link</a>. Any suggestion on how to fix this? This is the code I am using. library(httr) SPurl <- "somesite.com/sites/site/Documents/DocFolder/fileName.ext" LinkToFileInSharePoint <- paste0("<a href='",SPurl,"' target='_blank'>",SharePoint Link,"</a>") x <- list( fields = list

CustomFieldManager is not getting the custom field after modifying the custom field name using REST api in jira

一世执手 提交于 2019-12-11 13:19:07
问题 I'm changing the custom field name using the REST api in JIRA. It is changing the custom field name suceessfully. But when I tried to get the custom filed in the code, I'm getting null as the result. String modByWhomCustomFieldName = pluginConfigService.getMUFCustomFieldName(); System.out.println("+++++++++++++++++++In flagCustomField() modByWhomCustomFieldName is:"+modByWhomCustomFieldName); //CustomField modByWhomCustomField = cfManager.getCustomFieldObjectByName("Description Changed By");