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
12
votes
1 answer

jira: How do I put a text after a nested list?

In Jira, how do I put a text after a nested list in the context of the current numbered top level list? I have problems with indentation and numbering. Desired: 1. one Text before nested list • List item • List item Text…
basin
  • 3,949
  • 2
  • 27
  • 63
12
votes
4 answers

How to get all work logs for a period of time from the Jira REST API?

I'm writing an application using PHP and the Jira REST API which is required to generate a report for a particular period of time with the accumulation of hours spent by a person on a particular project. For this I will need a call which will give…
hpd
  • 475
  • 1
  • 4
  • 16
12
votes
4 answers

Create JIRA sub-tasks automatically when issue created

I am wondering there is a way to create sub-tasks automatically when issue created. For example, I create a custom Standard Issue Type, XXX, and Sub-tasks Issue Type YYY and ZZZ. When I create a issue with type XXX, then two sub-tasks with…
ttt
  • 3,934
  • 8
  • 46
  • 85
11
votes
1 answer

Tampermonkey overrides JIRA Shortcuts

I have a tampermonkey script which colorizes JIRA comments depending on their text. The coloring does work as expected. But all keypress events of the JIRA issue are deactivated. Before the script I was able to press . to activated the Action Menu…
xetra11
  • 7,671
  • 14
  • 84
  • 159
11
votes
4 answers

python : cannot import name JIRA

I have already done pip install jira but when I run the following it fails with ImportError: cannot import name JIRA import re from jira import JIRA jira = JIRA('https://issues.net') # all values are samples and won't work in your…
Scooby
  • 3,371
  • 8
  • 44
  • 84
11
votes
2 answers

Force Bitbucket Commit to be associated to JIRA Ticket by Comment Formatting

The exact need is to force all commits into Bitbucket to be linked to a JIRA ticket. I have does this before on Subversion by creating a commit hook that looked for the JIRA ticket in the commit text, but I don't want this solution to be…
Inquisitor Shm
  • 1,433
  • 5
  • 17
  • 26
11
votes
2 answers

No such property error for String in Groovy

So I have the following bit of code (the important bits): import java.lang.String; //More imports ... String errorString = "" //More global variables def mainMethod(){ if (errorString.length()) { errorString += "BTW, fields with errors…
Francisco
  • 2,050
  • 3
  • 14
  • 19
11
votes
3 answers

Listing All JIRA Transitions via API

I'm looking to set up smart commits in JIRA, but my developers want to know all the options for their transitions. In order to help them, I'd like to print a cheat-sheet of all transition names (I trust they are smart enough to figure out what does…
ABMagil
  • 4,579
  • 4
  • 21
  • 35
11
votes
1 answer

Get request Ember.js on Sails.js

I am creating a web application using Sane stack, which uses Ember.js on the client side as a JavaScript framework, and on the server side it uses Sails.js as a node.js framework. I structured my application architecture as follows: I am trying…
Alaa-GI
  • 410
  • 1
  • 5
  • 19
11
votes
2 answers

Unauthorized (401) when I try to access JIRA REST API with PHP

I'm trying to use JIRA REST API with PHP. When I copy the url below and paste it straight into the browser it works fine. The resulting issue is returned as json. But with the code below it doesn't work. I get Unauthorized (401) as a return…
Weblurk
  • 6,562
  • 18
  • 64
  • 120
11
votes
1 answer

jira-ruby gem limiting number of returned issues?

I'm trying to fetch issuses from JIRA using gem called jira-ruby. The problem is, that the result contains 70 issues, but I can see only the first 50. When using directly the JIRA REST API, I can set maxResults parameter (outside the JQL) to a…
Rafael Korbas
  • 2,213
  • 3
  • 19
  • 30
11
votes
3 answers

Getting Issue Type Scheme and Workflow Scheme for JIRA project using REST API

I'm doing an integration for JIRA using REST API 6.2.6. One thing that I need to do is to get Issue Type Scheme and Workflow Scheme for a project. What I tried: Issue Type Scheme The only thing that I can get right now is a list of issue types using…
Aleksandr Ivanov
  • 2,778
  • 5
  • 27
  • 35
11
votes
3 answers

Link JIRA and Bitbucket

I followed the instructions to integrate JIRA and BitBucket. https://confluence.atlassian.com/display/AOD/Linking+a+bitbucket+or+GitHub+repository+with+JIRA+OnDemand I created a new project in JIRA and then added multiple Issues, version and…
gogasca
  • 9,283
  • 6
  • 80
  • 125
11
votes
4 answers

Can you share components between Jira projects?

I need to track issues in libraries that are shared between multiple projects. Is there a way to share these components? Or is it better to file a separate issue on each affected project?
Ben Gartner
  • 14,413
  • 10
  • 36
  • 34
11
votes
3 answers

Moving from Gerrit to Crucible

We currently use Gerrit, for a team of about a dozen and some developers. This is our current workflow: 1. Developers branch from master 2. Developers work on their local branch 3. Developers push to gerrit, which gatekeeps the master branch by…
Vic
  • 1,336
  • 11
  • 30