jira

Basic authentication using urllib2 with python with JIRA REST api

霸气de小男生 提交于 2019-12-04 13:34:25
问题 I am trying to find how i can use basic authentication using urllib2 in python to get the issue KEY The JIRA REST API describes the URI's available Thanks for the sugestions, i will try it, meanwhile, i just wanted to update this with my own effort: Here is the sample python code i tried: import urllib2, sys, re, base64 from urlparse import urlparse theurl = 'http://my.rest-server.com:8080/rest/api/latest/AA-120' # if you want to run this example you'll need to supply a protected page with y

How to use Basic Authentication with JIRA REST API in JavaScript?

狂风中的少年 提交于 2019-12-04 11:47:06
问题 I'm creating a JavaScript app for a Smart TV to show dashboards on the tv. I get the list of dashboards with the JIRA REST API. The url I use for this is: jira/rest/api/2/dashboard?startAt=&maxResults= afterwards I create a wallboard as followed to show them on the tv: jira/plugins/servlet/Wallboard/?dashboardId=&os_username=&os_password= because of the os_username and os_password , JIRA knows i'm authenticated and gets the right list. this list is the one i need from the beginning but

JIRA JQL searching by date - is there a way of getting Today() (Date) instead of Now() (DateTime)

让人想犯罪 __ 提交于 2019-12-04 08:01:14
问题 I am trying to create some Issue Filters in JIRA based on CreateDate . The only date/time function I can find is Now() and searches relative to that, i.e. "-1d", "-4d" etc. The only problem with this is that Now() is time specific so there is no way of getting a particular day's created issues. i.e. Created < Now() AND Created >= "-1d" when run at 2pm today will show all issues created from 2pm yesterday to 2pm today when run at 9am tomorrow will show all issues created from 9am today to 9am

Does the JIRA REST API require submitting a transition ID when transitioning an issue?

回眸只為那壹抹淺笑 提交于 2019-12-04 06:37:18
If I POST an issue transition like this: { "fields" : { "resolution" : { "name" : "Fixed" } } } ...I get this error: { "errorMessages" : ["Missing 'transition' identifier"], "errors" : {} } This seems to imply that I need to include a transition ID along with my list of changed fields. https://stackoverflow.com/a/14642966/565869 seems to say the same. Fine. However, transition IDs appear to be global. It's not enough to look up the highest transition ID for this issue and increment it; such an ID is probably in use elsewhere. At some expense, I could get the highest transaction ID used

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

Find parents issues which contains subtasks with label

ぃ、小莉子 提交于 2019-12-04 02:04:26
问题 I have a JIRA project and some of my tasks contains subtasks with lasbels "needDesign". Is it possible to find all parent tasks which contains subtasks with that label? (I use ondemand jira version) 回答1: Jira JQL doesn't not provide this out of the box, however there are many add-ons that extend JQL to allow this. I would normally suggest you install the Script Runner add-on (see https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner) as it contains many useful built

Updating Jira tickets from Jenkins workflow (jenkinsfile)

前提是你 提交于 2019-12-03 16:50:47
How can I update a jira issue from within a Jenkinsfile (jenkins-worflow/pipeline) ? Is there a way I could use the Jira Issue Updater plugin as a step in the Jenkinsfile? I know I could use the Jira RestAPI, but I'm trying to figure out if I can re-use the functionality provided by the jira-updater-issue . What I'm looking for is a something similar to the example below calling Junit archiver, and atifact archiver, but calling jira updater. node { git url: 'https://github.com/jglick/simple-maven-project-with-tests.git' def mvnHome = tool 'M3' sh "${mvnHome}/bin/mvn -B -Dmaven.test.failure

Jira Quick-filter to show all task with subtasks assigned to current user

此生再无相见时 提交于 2019-12-03 16:29:12
问题 Currently, I have a quick filter to show me my task that does this: assignee = currentUser() This works ok, but doesn't show me tasks that are assigned to someone else, but have subtasks assigned to me. Is it possible to make it show me both tasks assigned to me, and tasks that have subtasks assigned to me? 回答1: Create a filter for all of your subtask from the following JQL: issuetype in subtaskIssueTypes() and assignee = currentUser() Then, using Craftforge JQL Functions Plugin, use the

List all JIRA tasks that are not blocked by other tasks

大城市里の小女人 提交于 2019-12-03 13:56:23
Using JIRA 4.4.3, I've created a filter that list all the tasks that: - The current user is assigned to; - are Open; - are not blocked by any other task. To make it clear: the task that are ready for a user to work on. We've installed the Craftforge JQL Functions plugin, and I've come with the following JQL query: assignee = currentUser() AND status in (Open) AND issue NOT IN linkedIssuesFromFilter("All Issues", "Blocks", "Outward") The problem is that when an issue that was blocking another issue is resolved, the "Blocks" link still exist -- and I don't want to delete it. But my query doesn't

{“errorMessages”:[\"Unexpected character (''' (code 39)): expected a valid value

◇◆丶佛笑我妖孽 提交于 2019-12-03 12:39:54
I found "Query using POST" from here . And tried to use curl command from command like. Installed curl by refering this for windows. Here is my CURL string: curl -D- -u admin:password -X POST -H "Content-Type: application/json" --data '{"jql":"project = CI","startAt":0,"maxResults":50,"fields":["summary","status","assignee"]}' "https://myclientname.atlassian.net/rest/api/2/search" This is how I'm doing and getting error: {"errorMessages":["Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: org.apache.catalina