Questions tagged [jira]

Questions tagged with [jira] should be related to interacting with Jira programmatically.

Jira is a proprietary issue tracking product, developed by Atlassian. It's often used to track issues for software development and other teams, and has many apps to support this.

There are two ways to interact with JIRA programmatically:

  1. APIs are typically used when building a Plugins2 plugin for Jira Data Center, which is a single containing code, an app descriptor () and usually some template files to render .
  2. REST APIs are typically used when building Connect add-ons (web applications for Jira Cloud) or configuring webhooks.
5925 questions
15
votes
5 answers

How do I query Jira to search for all issues that have been resolved within a length of time from when it was created?

For example, let's say I need to find all issues that were resolved within 1 week's time. I need something like: resolved - created < '1w' Another example: Let's say I have 3 issues: 1) created 2 days ago, resolved 1 day ago. 2) created 5…
Marc
  • 153
  • 1
  • 1
  • 5
15
votes
1 answer

How to make a field required only on a Workflow Screen in Jira

I am configuring Jira for bug reporting, I have customised the create/edit/view screens for creating a "Bug" issue type and defined a custom workflow, two of my workflow steps "resolved" and "closed" have custom screens or "views" as they appear to…
Toby
  • 957
  • 2
  • 14
  • 34
15
votes
9 answers

JQL: Get list of sprints

Is it possible to get a list of sprints for a particular project ? I know there is a way to find issues by a sprint, but haven't found any way to get all the sprints.
user2445124
15
votes
6 answers

JIRA Rest API Login using C#

I've written below C# code to login to JIRA Rest API: var url = new Uri("http://localhost:8090/rest/auth/latest/session?os_username=tempusername&os_password=temppwd"); var request = WebRequest.Create(url) as HttpWebRequest; if (null == request) { …
user1585432
  • 151
  • 1
  • 1
  • 3
14
votes
4 answers

How do I save a value into a custom field in JIRA programmatically?

I've spent days trying to find out how to save or update a value into a CustomField programmatically and finally found out how it's done. So I'll make this a question and then answer it as I would have loved to have this question and answer. There…
enormace
  • 641
  • 2
  • 6
  • 20
14
votes
1 answer

How do I close a project in Jira?

There are a few tasks still open in the backlog, but we're done with the project and I would like to close it. How do I do that?
jeph perro
  • 6,242
  • 26
  • 90
  • 124
14
votes
2 answers

How to archive projects in Jira, so they would disappear from Projects picker

We have bunch of old projects in Jira Studio that we want to keep online (in case, if we need to return to them for whatever reason), but I don't want them to appear anywhere in our daily Jira usage, i.e. dashboards, project picker etc. I followed…
Alex Koloskov
  • 820
  • 10
  • 14
14
votes
2 answers

How to make an image clickable in jira comment, so it pops up as if you click on attached image in attachment area?

I'm talking desktop browser experience, e.g. chrome. In jira, if I attach the image I can use it in my comment - and it's great! I usually use width=800px so the whole image can be seen in the comment. So I can write something like this: Here's…
user1249170
  • 469
  • 1
  • 5
  • 14
14
votes
1 answer

jira python customfield

How do you determine the name of a custom field in jira-python? When I retrieve an issue, my custom fields show up as customfield_xxx The names on my screen are 'project', 'name', 'due date', etc. Short of putting a value in each field, then seeing…
Paul Nelson
  • 1,291
  • 4
  • 13
  • 20
14
votes
2 answers

JIRA JQL - Find all subtasks that are open where the parent is closed

I have to do a little sub-task clean-up and wondering if there is an easier solution to do this using JQL. Basically i want to find all sub-tasks that are not closed where the parent of that sub-task is closed. Is this possible? I have tried to…
ziggy
  • 15,677
  • 67
  • 194
  • 287
14
votes
2 answers

Authenticate JIRA REST API using OAuth with Node.JS

I'm building a client application in Node.js for creating new JIRA issues and I want to authenticate users using OAuth. The Atlassian docs are pretty bad for Jira and Oauth newcomers. So, I'm looking for a single example that describes exactly how…
Colyn Brown
  • 508
  • 1
  • 5
  • 11
14
votes
4 answers

JIRA code validation commit hook for 'git'

Does anyone have a git commit hook I can use that will ensure a JIRA issue number appears in the checkin message? I've got no experience driving JIRA from a git commit hook so any help would be appreciated -- working source even more so!
Andrew
  • 11,894
  • 12
  • 69
  • 85
14
votes
4 answers

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

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…
Robert Kovačević
  • 1,378
  • 4
  • 16
  • 23
14
votes
1 answer

how to create a single annotation accept multiple values in Java

I have a Annotation called @Retention( RetentionPolicy.SOURCE ) @Target( ElementType.METHOD ) public @interface JIRA { /** * The 'Key' (Bug number / JIRA reference) attribute of the JIRA issue. */ String key(); } which allows to…
Junchen Liu
  • 5,435
  • 10
  • 51
  • 62
13
votes
1 answer

Jira Summary contains text filter

I need to filter issues whose title (Summary attribute?) contains a text "config". So what I did is: More->Summary Enter the text "config" But for some reason I only got issues whose title contains "config" or "configs". I didn't get the issues…
embedc
  • 1,485
  • 1
  • 6
  • 20