Menu
  • HOME
  • TAGS

Have JIRA send mails to watchers on commit from Stash on a ticket

git,email,jira,atlassian-stash

In general the work flow you use requires Git Integration Plugin for JIRA or JIRA DVCS Connector (if you are using Bitbucket or Github) so I assume you use that. An alternative is to use the JIRA REST API to handle your tickets with git hooks - this should trigger...

How to change the issue Type of an issue in JIRA via email?

asp.net-mvc,vb.net,jira

By default this cannot be done, but by using a couple of add-ons you can successfully get it to work: https://marketplace.atlassian.com/plugins/com.metainf.jira.plugin.emailissue https://marketplace.atlassian.com/plugins/com.javahollic.jira.jemh-ui...

Format Excel sheets export by JIRA-(JIRA custom reports)

vba,pivot,jira,jira-plugin,visual-studio-macros

After searching may ways to get an answer for the question I have found a way to solve this using macros. Step 1: I have created a new empty work sheet called "Sheet B" in the same Excel work book generated by the plugin. Step 2: write a macro code...

Reading Jira Webhook POST data

java,servlets,jira,webhooks

You have to read the response body, not the parameters map. For that purpose you can use request.getInputStream(); or request.getReader(); method. PS: You can configure the web hook to post data to http://requestb.in/ so you can easily analyze the request parameters, the request body, the headers, etc....

Access specific information within worklogs in jira-python

python,jira,python-jira

I found a roundabout way of doing it through the client. As I iterate through each issue I get the list of worklogs per ticket by doing worklogs = jira_client.worklogs(issue.key) and then i iterate through all of the worklog items in the worklogs list (a nested for loop): for worklog...

Jira Report wiith Time Remaining By Component

report,jira

There is not exactly a report to give you that. See the predefined reports available for the current version of JIRA here. There are different ways to go from here: Create a report on your own by using the JIRA SDK and programming a plugin (which will need a lot...

JIRA REST API to get work log - “You do not have the permission to see the specified issue”

error-handling,jira,jira-rest-api

You REST API request need to be authenticated. Please read Authentication paragraph (4th from the top): https://docs.atlassian.com/jira/REST/latest/ The easiest way is to use /rest/auth/1/session: https://docs.atlassian.com/jira/REST/latest/#d2e3737...

Am I able to retrieve a JIRA HTTP URL using a GET Request when I use CORS?

asp.net-mvc,vb.net,cors,jira

I have found out that the JIRA system that I was trying to pull information was not hosted online so that was the reason why I was not able to retrieve information and it was giving me the error: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:XXXXX'...

HTTP request failed! HTTP/1.1 400 Bad Request

php,google-app-engine,jira,jira-rest-api,http-streaming

http_build_query() generates a url-encoded string. However, the API requires JSON. You should be using json_encode() instead. Change: $data = http_build_query($data); To: $data = json_encode($data); While maybe not your only problem, this is definitely one problem that would result in an 400 Bad Request....

JIRA Rest API - getting the list of all Projects and all issues within each project

json,jira,atlassian,jira-rest-api

You have to speak with the API :) https://docs.atlassian.com/jira/REST/latest/ Let me know if you need further help....

Sprint bugs changed since yesterday

jira

Something like: project = TEST and issueType = Bug and updated > -1d and sprint in openSprints() Would look in the Test Project for all Bugs updated within the past 1 Days and the issue is in an Open Sprint. Or you could use perhaps startOfDay(-1d) instead of -1d. See...

Edit JIRA Issues Java Rest

java,rest,jira

Manged to find a way using the Jira REST and the Jersey Library. Currently, Jira's Java API supports reading and creating tickets but not editing. package jiraAlerting; import javax.net.ssl.TrustManager; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.WebResource; import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter; public class restLab { WebResource webResource; static { //for localhost testing only javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(...

Update JIRA ticket status using REST API

curl,jira,jira-rest-api,jira-rest-java-api

Status is not a field in Jira and thus changing the same on fly is not possible. JIRA API doesn’t have provision for that. We have to follow the transitions and change accordingly. First, execute ‘http://localhost:8100/rest/api/latest/issue/MTF -2/transitions?expand=transitions.fields and know the id’s for transitions. For Eg: transition id for “Stop Progress”...

JQL is not working as per expected

jira,jira-rest-java-api

JQL relies on lucene index and looks like issues created by the JiraRestClient are not indexed till you update them (issue is indexed on update). For me it sounds like a bug. To be sure please launch full reindex https://confluence.atlassian.com/display/JIRA/Search+Indexing and then try to reproduce your case.

Jira API getting attachment

php,api,jira,jira-rest-api

In case anyone else wonders how to do this: $url = "https://mySite.atlassian.net/secure/attachment/". $attachment_id ."/". $attachment_name ."?os_username=". $this->jira_user_name ."&os_password=" . $this->jira_password; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); $file = curl_exec($ch); curl_close($ch); if($file){...

Adding attachment to Jira via API

php,curl,jira,jira-rest-api

You need to use: $data = array('file'=>"@". $attachmentPath . ';filename=DSC_0344_3.JPG'); It is an issue in PHP cURL <5.5.0 but > 5.2.10, see JIRA API attachment names contain the whole paths of the posted files When using PHP >= 5.5.0 it is better to switch to the CURLFile approach as also...

Is the Jira feature 'JQL' (Jira Query Language) a threat for the security of my Jira installation?

jira,sql-injection,atlassian

If you are not logged in to the server, your query will not be executed and you will get no results. Unless the JIRA instance has been specifically set up to allow anonymous viewing of issues, such as jira.atlassian.com JQL is a separate language from SQL and does not suffer...

Get notification in my client code

java,jira,jira-rest-java-api

What do you want to achieve? You want to have push notifications? There isn't any, IMHO. UPDATE: However, there is this WebHook thingy: https://confluence.atlassian.com/display/JIRA/Managing+Webhooks. I have no expertise with it, but it is promising, please read this short introduction also: http://blogs.atlassian.com/2012/10/jira-5-2-remote-integration-webhooks/. You are looking for something that gives you back...

Delete link on page in Confluence

jira,confluence,atlassian,jira-plugin

forget to post solution. You can use "conveyor" plugin to override confluence's file. So, you can easily modified pages. there is some step to do when you read documentation to work on conveyor. easily got whatever you want... thanks...

Jira Oauth: 401 Unauthorized in PHP oauth_problem=“signature_invalid”

php,oauth,jira,jira-rest-api

I am providing different Public key in Jira and in Application. After correction this issue it runs great.

Jira SAL using PluginSettings

plugins,settings,jira,webwork,sal

It was easier than i thought. I simply had to inject the Settings as a dependency for my WebWork: public WebWorkAction(CustomProjectSettings settings){ this.settings = settings } The Settings-Class gets autowired by <component-import key="pluginSettingsFactory" interface="com.atlassian.sal.api.pluginsettings.PluginSettingsFactory" /> and by adding <component key="settingsComponent" class="com.xxx.CustomProjectSettings"> </component> ...

Jira Errors with Calculated Number Field

jira,atlassian,jira-plugin

int i = (issue.get("customfield_11631") != null ? Integer.parseInt(issue.get("customfield_11631").toString()) : 0) made it work. great thanks @ThePavolC

Can TFS 2013 have email notications to multiple users that watch a work item

tfs,jira,tfs2013,tfs-workitem,tfs-alerts

Sure, you can setup email alerts based on many different criteria, including what you asked for. You need to go to the Alerts section, and create a new custom alert, and you can put in the ID of whatever work item you want to "watch". By default it includes the...

Best way to fix using a reserved JQL keyword in a JIRA query?

jira,keyword,jql,python-jira

First of all, you can quote anything that you pass to that particular query, so you don't have to care about what is a reserved word or not. For example, this works: key in ("abc-1","def-2") If you were to substitute the word "update" in there, it would eliminate the specific...

Jira / Cards assigned to a user in a given timeframe

jira,jql

Should be like: assignee was currentUser() DURING ("2014/08/01", "2014/10/31") From looking at the Advanced Searching documents....

401 (Unauthorized) when accessing JIRA API with query string

jira,jira-plugin,canonical-link,jwt,jira-rest-api

Apparently the Map<String, String[]> is required to generate the appropriate canonical URI. Note that I am passing an empty HashMap<String, String[]> to the CanonicalHttpUriRequest... is this correct? I modified my method signature so I can pass it as a parameter. Note: createQueryString is a method inside my class that manually...

How do I use SQL to extract custom field data for JIRA issues?

mysql,jira

MySQL has traditionally had very poor performance when using subqueries, since it did not use indexes or fare very well at the query optimization part. (I believe that this has been improved somewhere around MySQL 5.6.x.) In the meantime, one thing you can do is to materialize the queries yourself...

How to update Issue status as done through rest api?

c#,jira,fiddler,jira-rest-api

I was using the wrong approach, for setting the status as done of the Jira issue you have to send two requests to the server (1) Get request which will return the transaction id for the issue. (2) Post request to the server with the help of transaction id you...

accessing transition history via JIRA REST API

jira,jira-rest-api

When you use expand=changelog, then all changes that have been done in issue are there. Exactly same info as in All tab in Activity section when viewing in web browser. When I send: http://jira.my.server.se/rest/api/2/issue/KEYF-42346?expand=changelog Under changelogkey I find list of histories. Each historyhas list of items. Those items are changes...

configure custom fields per project in jira

jira,atlassian,jira-plugin

Even if using the same custom field configuration scheme among multiple projects, you can still visit an individual custom field in the Custom Field configuration page and add a custom field context that provides different configuration options for the field for one or more projects. This is primarily useful for...

JIRA as a Test Case Management Tool

jira,testcase

JIRA is a ticketing system. As it's marketing buzzword bingo says: "Issue tracking and code integration to plan, collaborate, and ship great products." It does more if you find or create the necessary plugins. It does issue tracking by itself, and code integration with other Atlassian platforms. It does not...

How to get all transitions for specified workflow

java,jira,jira-plugin

From what I can gather from the API documents, the WorkflowManager can be used to call getWorkflow(java.lang.String) which returns a JiraWorkflow based off the provided workflow name string. Then from that you should be able to get all the transitions in the workflow, I am just not sure what exactly...

Jira Integration in C# [closed]

c#,.net,jira

If you have access to the database, and want to read data that way, that's entirely possible using standard .NET objects, but you'll probably need to be decent at SQL to get the data out that you want. Here's how you can (try to) access the database: SqlDataReader rdr =...

Javascript JIRA Extension not working on hover

javascript,jquery,plugins,jira,atlassian

I refactored your code and it works OK. The trick is to fill the tooltip inside the ajax callback function. AJS.toInit(function () { var url, issue_id, offset, x, y, jira_data, html, fixVersions, assignee, domain = document.location; // build url whatever it might be url = domain.protocol +'//'+ domain.hostname if (domain.port...

Find issuetype name in jira with issuetype id

jira,jira-plugin

I found needed method on this page :Jira Constants Manager I had to use code: ComponentAccessor.getConstantsManager().getIssueTypeObject(val).getName() where val is issue number. I had to use Component Accessor to get to correct method. Import: import com.atlassian.jira.component.ComponentAccessor;...

JIRA Hide fields in View

jira

There may be other easy ways to do this.but one solution that comes to my mind is use of Behaviours plugin.using this plugin can hide fields if certain user logged into the system. you can follow steps like this.. 1.install Behaviours plugin and create new behaviour then add mappings and...

JIRA attachment with REST API

python,json,rest,jira,jira-rest-api

You can only set issue fields during creation: https://docs.atlassian.com/jira/REST/latest/#d2e2786 You can add attachments to already existing issues by posting the content itself: https://docs.atlassian.com/jira/REST/latest/#d2e2035 Sou you have to do it in two steps....

JQL 5.1 query does not display a particular field

jira,jql

project=PROJECT_KEY AND resolution = Unresolved AND issuefunction not in parentsOf("project=PROJECT_KEY AND resolution = Unresolved") AND issuefunction in parentsOf("project=PROJECT_KEY") It's quite complicated but it will find all issues that have some subtasks and all of these subtasks are closed. If you want it to find open issues without subtasks as well,...

How to archive Jira version with REST API

json,rest,jira

As described in the API docs, versions don't use an "update" field for updating. Simply PUT the data {"archived": true} to http://JIRA-SERVER/rest/api/2/version/VERSION-ID.

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

php,curl,jira,jira-rest-api

Solution: Use username and not email when providing credentials. It turns out, even if you login with your email in JIRA, it's not the email you use here, but the username, which can be found in Jira->Settings->Profile...

Creating JIRA issue using curl from command line

rest,curl,jira

Two things are off: you need to put the data that you want to post in quotes the first double quote surrounding PROJECT_KEY is a unicode character instead of a regular double quote, so change “PROJECTKEY" to "PROJECTKEY" This should work: curl -D- -u username:password -X POST --data '{"fields":{"project":{"key": "PROJECTKEY"},"summary":...

JIRA - Select issues where no subtask is assigned to the current user

filter,jira,jql

This query does what is needed. It excludes the sub-tasks that has assignee set to current user and then gets all the other parent tasks. issuefunction in parentsOf("assignee != currentUser() or assignee is empty") AND assignee = currentUser() AND not (issuefunction in parentsof ("assignee = currentUser()")) ...

Is there a way to retrieve all stories for any epic that contains a string in jira's jql?

jira,jql,jira-agile

Sadly, you cannot reference fields as values or functions in JQL. If you do something like description ~ summary, it will either throw an error, or automagically quote it as description ~ "summary" and search for the string literal "summary"....

SQL Query for JIRA issues

sql,database,oracle11g,jira

I suppose you want to have one issue per row. This report won't be an easy one, there are some factors in the JIRA database structure which will make this slow. I've built a query that joins columns through rejoining the same tables to get the different values of interests....

Excluding properies for JIRA JQL search using REST API

jira,jira-rest-api

Is there a way we can filter out all other properties? There is no way to hide other properties of assignee....

JIRA jql to get all users who have touched a ticket

jira,jql,jira-agile

To get all the issues where the assignee has changed then you could do: assignee changed However I don't believe there is a way that you can do a JQL to search for all issues where a user was assigned to it but no longer is short of creating your...

JIRA Rest API error. Unrecognized token creating a issue

ajax,json,rest,jira,jira-rest-api

You could try something like this: jira = { "fields": { "project": { "key": "CIC" }, "summary": data["story.name"], "description": data["story.notes"], "issuetype": { "name": "Sandbox item" } } }; //THIS BADASS FUNCTION!!! jira = JSON.stringify(jira); $.ajax({ type : "POST", url : configuration.api_url, dataType : "JSON", async : false, headers: { "Authorization":...

Using TFS and JIRA how can I take advantage of one of their Code Review features?

tfs,jira,code-review,alm

If you're on TFS 2013, you might be able to use the Lightweigt Code Commenting features of the Web Access. it provides a great way to apply comments to the code. It doesn't require the use of work items anywhere and is probably more to what you're used to from...

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

jira

You want this to allow a small image in the comment to be expanded into a larger light box view: !my-screenshot-image.jpg|thumbnail! Per the source for JIRA 6.3, the following are also valid attributes for images: align border bordercolor alt title longdesc height width src lang dir hspace vspace ismap usemap...

Jira recover user and password

user,jira

You can run the HSQL Database Manager by shutting down JIRA, then running the following command: java -cp /path/to/WEB-INF/lib/hsqldb-1.8.0.5.jar org.hsqldb.util.DatabaseManager \ -user sa \ -url jdbc:hsqldb:/path/to/jira-home/database ...depending on the actual filename of the HSQL jar. The actual JDBC string should be available in JIRA admin somewhere. This will then allow...

JIRA Usage on AWS

url,tomcat,amazon-web-services,jira

JIRA defaut http port is 8080. So you need access it via ec2-xxxxx.xxxxx.amazonaws.com:8080 if you are not following the detault setting, then you need make sure which port are set by this document Changing JIRA's TCP Ports You may need open the firewall port 8080 and set in one security...

Sort by custom field using Jira's API

php,jira,jira-plugin,jira-rest-api

so, it turns out that Jira's api expects the field to be formatted like this: cf[11200]

Transition tab not visible -JIRA Suite Utilities Plugin

jira,jira-plugin

I have found what I missed.In default the transition tab module and most of the modules were disabled in the plugin. then i had to enable it manually.

Access JIRA API with api key without username and password

authentication,jira,jira-rest-api

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 assemble a solution from the other programming languages here: https://bitbucket.org/atlassian_tutorial/atlassian-oauth-examples/src You should use a generic OAuth library anyhow....

How to call an external webservice from Jira?

web-services,jira

basically this feature is already built-in! It is called Webhooks: https://confluence.atlassian.com/display/JIRA/Managing+Webhooks Simple example: If you define such a Webhook the URL is invoked at every Issue update with all fields and also all fields that changed (before - after). You could intercept your desired step in the workflow transition in...

StartIndex or Offset attribute for jira xml export

xml,api,export,jira

I'll leave it here for anyone looking for the same thing. The attribute to use is &pager/start=id and here's a little bash script to download them by slice of 200... #!/bin/bash for i in {0..58600..200} do curl --max-time 9000 "https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=issuetype+%3D+Bug+AND+status+%3D+Resolved+AND+resolution+%3D+Fixed+ORDER+BY+createdDate+ASC&tempMax=200&pager/start=$i"; done ...

Delete issue in JIRA using Java

java,jira

You can try delete from IssueService: https://docs.atlassian.com/jira/latest/com/atlassian/jira/bc/issue/DefaultIssueService.html#delete(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.bc.issue.IssueService.DeleteValidationResult)

How can I consume a Json Payload from a webhook and display certain features of the Json in vb.net MVC?

json,asp.net-mvc,vb.net,jira,webhooks

This is how I got the Json Payload from the Webhook URL: Function URLEndpoint() As ActionResult Dim r As System.IO.StreamReader = New System.IO.StreamReader(HttpContext.Request.InputStream) Dim jsonAs String = r.ReadToEnd() Dim issue As oject= JsonConvert.DeserializeObject(Of object)(json) System.Diagnostics.Trace.TraceError(json) Then create the classes to have the correct information from the Webhook: Public Class object...

jira-python package in pip has gone?

python,pip,jira

It might have been superceded or replaced by jira Install: $ pip install jira Quickstart: rom jira import JIRA jira = JIRA('https://jira.atlassian.com') issue = jira.issue('JRA-9') print issue.fields.project.key # 'JRA' print issue.fields.issuetype.name # 'New Feature' print issue.fields.reporter.displayName # 'Mike Cannon-Brookes [Atlassian]' ...

Tomcat behind an apache proxy error on path

java,apache,tomcat,jira,mod-proxy

Using ProxyPass to change the path of a web application, as you can, usually ruins everything. Instead, you should do either this: ProxyPass /tomcat http://dev.debian.local:8088/tomcat ProxyPassReverse /tomcat http://dev.debian.local:8088/tomcat or this: ProxyPass / http://dev.debian.local:8088 ProxyPassReverse / http://dev.debian.local:8088 If you take the second option, re-name your "tomcat" web application to "ROOT" (case-sensitive:...

Jira API issueLink connect two different instances

jira,jira-rest-api

I found the answer. 1) We are making a query to the jira issue which are we going to link (endpoint is /rest/api/latest/issue/${JIRA_ISSUE}) curl -D- -u ${JIRA_U}:${JIRA_P} -X GET -H "Content-Type: application/json" -m 60 ${JIRA_SOURCE_LINK} And extracting "id" field. This is the internal id of issue in jira "A" 2)...

HTTP POST request to JIRA using Java yields 400 bad request error, curl works fine

java,http,post,jira,jira-rest-api

Heads up, the problem was authorization (in case anyone has this problem as well). Totally derped and forgot to send username/password.

how to export issues retrived from a search filter as xml automatically in JIRA

php,jira,atlassian,jira-plugin,jira-rest-api

You can right click the Export to XML link while logged into JIRA and choose Copy Link Address if you are using Chrome. (Forget what it is in Firefox/IE/Safari/Etc.) This will give you a link like: https://dev-jira.myhost.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+test+and+issuetype+%3D+Story&tempMax=1000 Then you can use something to just hit that URL to download the...

Using Powershell to Change Assignee and Add Comment to Issue via JIRA REST API

api,rest,powershell,curl,jira

function ConvertTo-Base64($string) { $bytes = [System.Text.Encoding]::UTF8.GetBytes($string); $encoded = [System.Convert]::ToBase64String($bytes); return $encoded; } function Get-HttpBasicHeader([string]$username, [string]$password, $Headers = @{}) { $b64 = ConvertTo-Base64 "$($username):$($Password)" $Headers["Authorization"] = "Basic $b64" $Headers["X-Atlassian-Token"] = "nocheck" return $Headers } function add_comment([string]$issueKey,[string]$comment) { $body = ('{"body": "'+$comment+'"}') $comment=(Invoke-RestMethod -uri...

Only include specific issues in maven-changes-plugin JIRA report

java,maven,report,jira,maven-plugin

Unfortunately, this appears to be a bug. The RestJiraDownloader that the plugin uses does not use the filter property at all. I filed an issue: https://issues.apache.org/jira/browse/MCHANGES-353. I actually checked out a local copy and fixed it and it works as expected. Hopefully I'll get some time to submit a patch....

Get JIRA issue status time

jira

Thanks @SilenyHobit for the idea. Here is what I've done: First installed JIRA Suite Utilities plugin (its FREE) Added a custom field called RFTDate (date type control) Added a post function in RFT transition to update RFTDate with current datetime Voila!!!...

How to update labels for the issues present in Jql query/Filter

python,jira,jira-rest-api,jira-rest-java-api,python-jira

Update only works on a single issue. Search_issues returns a ResultList. The JIRA API does not support bulk change. However, you can loop over the issues yourself and do the update for each one. Something like: import jira.client from jira.client import jira options = {'server': 'https://URL.com'} jira = JIRA(options, basic_auth=('username',...

How to query Issues updated by membersOf(“TEAMX”) on Yesterday in JQL

jira,jql

If you have the free Script Runner plugin installed, you have a lot of JQL functions added. One of it is the workLogged (The link in that sentence points here). Cons It accepts only a username, not groups, nor roles. JIRA needs to be reindexed after plugin installation to use...

JIRA6 REST API - HttpClient and HttpClientCache JAR conflict

java,httpclient,jira,apache-commons-httpclient,jira-rest-api

Found the correct Jar file that has this method. The jar file can be downloaded from the link below: https://www.versioneye.com/java/org.apache.httpcomponents:httpclient-cache/4.2.1-atlassian-2...

PHP Rest API JIRA error 401 in version 2

php,jira

You need to you construct and send basic auth headers yourself. To do this you need to perform the following steps: Build a string of the form username:password Base64 encode the string Supply an "Authorization" header with content "Basic " followed by the encoded string. Make the request as follows:...

Authenticate to JIRA using node-jira module

node.js,jira

After digging into source code, looks like mentioned method isn't making request properly. It does this.request instead of this.doRequest. I'll submit it to github repo....

Jira Plugin link HTML to plugin functions

java,html,plugins,hyperlink,jira

The solution was Jira webworks. But apparently all Tutorials are a bit vague at some points. I recommend using the atlassian example code that they provide. It is much more useful than any tutorial out there including their own. JiraWebActionSupport is very important (implement a class deriving from it for...

Python: Subprocess call with wget - Scheme Missing

python,jira,wget

Try removing the quotes from the JIRA_URL. You don't need to use quotes to group arguments to subprocess.call, since they're already split into the list of arguments you pass in. FILTER_ID = 10000 USERNAME = 'myusername' PASSWORD = 'mypassword' # No extra quotes around the URL JIRA_URL = 'https://myjiraserver.com/sr/jira.issueviews:searchrequest-excel-all-fields/%d/SearchRequest-%d.xls?tempMax=1000&os_username=%s&os_password=%s' %...

How to get all Jira fields into a list?

java,jira,jira-plugin

Because getAllAvailableNavigableFields() throws FieldException. You should try catch FieldException as block below or throws it in the method signature. try { // your code here } catch (FieldException fe) { // handle exception here } ...

Jira post function - get current issue ID / Key

jira,jira-plugin

I found solution: (...) private MutableIssue mutableIssue; public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException { MutableIssue issue = (MutableIssue) getIssue(transientVars); System.out.println("Issue Id: " + issue.getId() + "\n"); } (...) Above code allows to get issue object from Jira post-function execute method level....

JIRA API: Get epic for issue

jira,jql

To get the epic key for an issue: Send a request to: /issue/ISSUE-NUMBER And look at the response body: { ..., fields: { ..., customfield_11300: ... <- here, the epic should be listed. The number can be different } } ...

In Jira can I create an issue, and link it at the same time?

jira,issue-tracking

You can achieve this by developing a new Jira-Plugin. This could consist of two parts: Define a new menu entry in the jira application menu Define a jira-action which does your linking stuff Defining a new menu entry is rather simple: The needed plugin-type is Web Item Plugin Module. For...

How to call add account method for tempoplugin with post in C#

c#,httpwebrequest,http-post,jira,httpwebresponse

I fount the solution. The problem lied in permissions on Jira. After double checking with admins my code worked perfectly.

JIRA - REST API - gadget data

jira,jira-rest-api,jira-rest-java-api

Short answer: 1.) no it is not possible to group the result set 2.) no it is not possible to get gadget data over Rest

Mapping values at the top level and a single value from a nested object

curl,jira,jq

I found the answer, The original and incorrect attempt looks like this: curl to jira | jq '.["issues"] | map({ key: .key, type: .fields.issuetype.name, typeid: .fields.issuetype.id, status: .fields.status.name, summary: .fields.summary, closedDate: .fields.resolutiondate, flag: .fields.customfield_10170["value"]})' > output/json/FullIssueList.json I wasn't treating the entry for flag as a separate array. So that single...

Migrate JIRA project to cloud-based JIRA hosting

jira

Import from self hosted JIRA instance to Cloud is a bit more difficult. You can read documentation about process here. The process is like: Export xml data from existing instance (which you already did). Prepare a zip which will contain your xml data and {yourJIRAhome}/data folder. Now you need to...

Difference between re-index and restart of JIRA server

jira

To display information to the end user, JIRA draws data from the database directly, from the Lucene index, and from in-memory caches. Re-indexing JIRA will eliminate any inconsistencies between the Lucene index and the database. Restarting JIRA will effectively flush all of the internal in-memory caches that it maintains of...

Jira: Thread-safe Gadget Data?

java,multithreading,jira,jira-plugin

You'll want to use Locks to synchronize access to the sections of your code that you need to have only one thread executing at once. There are plenty of resources on SO and in the Oracle Java docs that show how to use locks in more detail, but something like...

Update Issue in JIRA via email

asp.net-mvc,email,jira

I found out that I can add a comment to an existing issue via email by doing the following. Firstly in the MVC application I will identify the issue by getting it from its ID, then I will retrieve the issue Key from this. Dim Issue As New IssueResultTable Issue.key...

How do I order tickets by ticket name and ticket number in JIRA?

jira,atlassian

In a JQL query, end the query with : ORDER BY key...

In JIRA how can I have an agile board with multiple projects in it?

jira,jira-agile

Hmm well the more you know! status = Open ORDER BY Rank ASC easy...

How to enable inline editing option of a custom field in jira

jira,atlassian

You have to add the field to the edit issue screen. For the sake of completeness: Also Inline edit has to be activated in Administration -> General Configuration....

SQL query for JIRA database to find linked issues

sql,jira

A note: in JIRA v6 and later, the pkey column is deprecated and always null, you'll have to use the project and the issuenum columns. In your SQL, you forgot to link back to the jiraissue table to actually get the linked issues. Here, the query is for the ticket...

Adding attachment to Jira's api

php,drupal,drupal-6,jira,jira-rest-api

This should work for you: $data = array('file'=>"@". $attachmentPath . ';filename=test.png'); This was a bug with cURL PHP <5.2.10, you can see this in the PHP bug tracker: https://bugs.php.net/bug.php?id=48962 (And in the comments you see, that it has been fixed) And if you use PHP 5.5.0+ you can use this:...

JQL to retrive specific columns for a cetain label

jira,jira-plugin,jql,python-jira

Here's how to get issues by label via an http GET: http://yourserver.com/rest/api/2/search?jql=labels%20%3D%20SearchString Replace "SearchString" with the label you want to search for. This will return you a JSON object with a (JSON) array of issues. I am more familiar with the Java API than the python one, but I imagine...

Iterating through an array of Perl Hashes

json,perl,curl,jira

There is an array of "issues" within the hash. You cannot put arrays into hashes in Perl, this is only possible for array references. So you need to dereference it when iterating the hash(ref) with your foreach. foreach my $issues ( @{ $response->{'issues'} } ) { print STDERR Dumper($issues->{'key'});...

How to get voters lists from all linked issues

java,jira,jira-plugin

I solved it by using the following: To get issues linked to Issue issue by specified link types: LinkCollection linkCollection = ComponentAccessor.getIssueLinkManager().getLinkCollectionOverrideSecurity(issue); Set<IssueLinkType> linkTypes = linkCollection.getLinkTypes(); // Perform operations on the set to get the issues you want. for (IssueLinkType linkType : linkTypes) { List<Issue> l1 = linkCollection.getOutwardIssues(linkType.getName()); List<Issue> l2...

how to create JIRA quick filter where assignee is Unassigned

jira

In your case, create filter and type in JQL: assignee = unassigned user Or if no assignee assignee is empty You can select the widget "filter result" to show the consequence on your dashboard....

Add custom workflow to “Create project” screen

jira

There is no way to set a user created workflow as the default but there is a issue opened with Atlassian created about it. (See JRA-9363) Your only option would be to create the project and then immediately change over its Workflow Scheme to be that of your custom one...

Will Jira complain if I set the Resolution date to a date before the creation via direct DB write?

database,jira,corruption

I have access to the test server again, and I have tried it. I have modified all the RESOLUTIONDATE fields I had to fix, and when I reloaded the page the new date was there. Jira didn't complain about anything. I reindexed the server, so that queries yield correct results,...

JIRA: How can i list down the tasks in which my name was mentioned in comment section?

filter,jira

Depending on the version of the JIRA you have. In general the command to look in text field is: TextField ~ "text" where TextField is any JIRA text field like Description, Comment, Summary or it could be your Custom field name more on the subject: https://confluence.atlassian.com/display/JIRA/Advanced+Searching#AdvancedSearching-Comments...

JIRA: How a Subtask can Create a Subtask

workflow,jira,parent,atlassian,jql

I Found that the Bob Swift Plugin "Create on Transition" Works very well. It lets you assign a post function to a subtask workflow and that post function lets you create another subtask off of the parent when the original subtask is transitioned. It solved my issue perfectly.

Jira: How to set Assignee to match parent's Custom Field Value

groovy,jira,jira-plugin

ACG, I wasn't able to get your answer to work, but I found a very similar script here that worked perfectly! Thank you so much for your help! import com.atlassian.jira.user.ApplicationUsers cfParent = customFieldManager.getCustomFieldObjectByName('Project Manager') parentMyFieldValue = transientVars["issue"].getCustomFieldValue(cfParent) issue.setAssignee(ApplicationUsers.toDirectoryUser(parentMyFieldValue)) For those looking at this answer with a similar problem. Place this...

Passing a bash script variable to a quoted value in backticks

bash,jira,jq

Ok, I got it in the end. So I have an alias which points to the bash file. The file receives a variable which must be passed in quotes: $jiraReleases "Version1.2.3" The file takes the variable: JIRA_FIXVERSION=$1 Wthin jq the quotes are escaped, and additional quotes and apostrophes are added....

Using curl for lira API with a period in the fixVersion jql

post,curl,jira,jql

Ok, so it turns out that Jira doesn't permit version names in jql syntax. The version id must be used instead. And, in order to get the version id you must parse the result from https://thejirainstall.com/jira/rest/api/2/project/ON/versions? This now means that I have to use a JSON parser anyway. So, now...