FAQ Database Discussion Community


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

error-handling,jira,jira-rest-api
I want to get work log of a specified issue on Jira. According to this document https://docs.atlassian.com/jira/REST/latest/#d2e774 I'm using this format giving my issue id: /rest/api/2/issue/{issueIdOrKey}/worklog Although I have logged in Jira, I got this error: {"errorMessages":["You do not have the permission to see the specified issue.","Login Required"],"errors":{}} Besides, I...

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

java,maven,report,jira,maven-plugin
I'm currently using the maven-changes-plugin to generate a JIRA report for a given fixVersionId, as follows: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> <version>2.9</version> <configuration> <fixVersionIds>16355</fixVersionIds> </configuration> </plugin> However, what if instead of specific fixVersionIds, I want to be able to include specific issues? Is there a way to do that? I don't see...

Edit JIRA Issues Java Rest

java,rest,jira
I have tried to google this, but can't seem to get a good clear answer on this. I'm trying to edit JIRA issues using Java via the JIRA REST API. Can anyone provide a full example of editing a custom or standard field including library declarations? Completely new to REST...

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

filter,jira
JIRA: How can i list down the tasks in which my name was mentioned in comment section? In JIRA, in many tasks i was mentioned in comment but not assigned that task to me. So, i want to create filter by which i can see the list of all tasks...

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

json,jira,atlassian,jira-rest-api
what is the correct https link to get JSON data for all the projects at once? the current link to our dashboard is like this: https://company.atlassian.net/secure/Dashboard.jspa Would like to get all of the projects then use another https call to get all the issues for all the projects. Then after...

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

jira,atlassian
I have a JIRA project AAA and lots of tickets like AAA1, AAA2, AAA3 I'd like to search the tickets ordered by the name and ticket number, so it shows like this: AAA1 AAA2 AAA3 what key word I should use for the filter? I tried using 'order by Created',...

How to get all transitions for specified workflow

java,jira,jira-plugin
I'm writing Jira plugin and I need to get all transitions available in specified workflow. It would be good to get those transitions by workflow name. I can't find any class that can list it. Is it possible to get it without using rest?

Access JIRA API with api key without username and password

authentication,jira,jira-rest-api
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?

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

c#,httpwebrequest,http-post,jira,httpwebresponse
At this url there is a description how to call tempoplugin with usage of post. In order to achieve it, I created following string: also created following code for posting data: public static string HTTP_POST(string Url, string Data, string userName = "", string password = "") { string Out =...

JIRA Hide fields in View

jira
I have certain issues that are secure and should not be viewed by all roles. I'm looking for a way to only show the summary on the view screen but no other details unless a certain role views it. Some sort of way to flag an issue on creation to...

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

groovy,jira,jira-plugin
I'm using Jira and the Script Runner plugin to Create a sub-task on transition. That's all working well. However, I cannot seem to set the 'Assignee' of the Subtask to match the value of the 'Project Manager' listed on the parent (I believe this is a custom field). Below is...

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

vba,pivot,jira,jira-plugin,visual-studio-macros
I need to generate custom report in jira with transition time tracking details. this jira plugin can generate the time tracking details. but I need to add these time tracking details to the jira default all field export report.without copy paste the values I need to find a way to...

Transition tab not visible -JIRA Suite Utilities Plugin

jira,jira-plugin
I have installed the JIRA Suite Utilities plugin (Version: 1.4.10) in my JIRA server instance (version 6.4) and I need to tracking the time taken for each workflow transition.but i cant see the transition tab in the issues. I have followed the plugin documentation also. am I missing something? I...

accessing transition history via JIRA REST API

jira,jira-rest-api
I found another person apparently having this issue but I thought I'd re-ask the question to see if I could make it more explicit. I'm using the JIRA 6 REST web API and successfully pulling lots of data that matches our web cloud UI. Now I'd like to see the...

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

asp.net-mvc,vb.net,jira
I am working on an MVC application that is currently sending an email to JIRA and it is creating an issue. I am currently configuring all of the required fields and currently the issue being created has the issue Type set to bug as a default and also I think...

Jira SAL using PluginSettings

plugins,settings,jira,webwork,sal
I looked for a way to store project-specific configurations for my plugin. In the first step i only want to store a simple String like "Hello". So, what i found is SAL and the PluginSettings. https://developer.atlassian.com/docs/atlassian-platform-common-components/shared-access-layer/sal-services This seems pretty easy to use but I don´t have any idea how to...

Reading Jira Webhook POST data

java,servlets,jira,webhooks
I am trying to read Jira issue data using a webhook that posts the data to my servlet. When I travserve the request parameters map, I don't find anything in it. But the content lenght shows as "8876" which means webhook is sending the data. Somehow I am not able...

How to call an external webservice from Jira?

web-services,jira
I am a Java Developer but new to Jira. I have created a workflow in Jira and I want that at a specific step to call an external web service with the information that is within the application form at that moment. Is there a plugin for this or I...

JIRA attachment with REST API

python,json,rest,jira,jira-rest-api
I want to upload attachment while creating JIRA ticket, i tried below format but its not working with syntax error for file, any idea how to create this json file ? data = { "fields": { "project": { "key": project }, "attachments" : [ "file": "C:\data.txt" ], "summary": task_summary, "issuetype":...

Jira Integration in C# [closed]

c#,.net,jira
I am very new to this.So pardon me if I make any mistakes. I am trying to read the Jira database.I just need to read it. No write operations will be involved. I am using C#.From what little I know, I think a connection has to be established with the...

Migrate JIRA project to cloud-based JIRA hosting

jira
I am trying to migrate my existing JIRA project on my server to JIRA cloud hosting. I was able to export my existing project in XML format. However, for some reason, JIRA cloud based hosting does not seem to support importing a project from XML - the only option that...

Sprint bugs changed since yesterday

jira
Is there a way in Jira to find out what bugs that belong to this Sprint were changed since yesterday? I want to use this for out SCRUM summary. I can find which bugs I changed, and I can expand it to find out which bugs were changed by everyone...

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

jira,sql-injection,atlassian
As I unterstood it, JQL is used within a feature called 'Advanced Search' to dig up information stored in my Jira DB. It is a SQL-like query language. I can compose (and later reuse) a URL that contains a complete JQL query. Example: https://[mysite.com]/issues/?jql=project%20%3D%20PVZ%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20priority%20DESC Even if I am not logged...

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

git,email,jira,atlassian-stash
Our workflow is as follows: Someone opens ticket in JIRA (ABC-123) Developer commits with commit message ("Do the thing, relates to ABC-123") Developer pushes to Stash server Commit will show on JIRA (and when viewed on Stash, ticket will linked to JIRA). Note: I'm not sure if the above workflow...

Delete link on page in Confluence

jira,confluence,atlassian,jira-plugin
I want to create a link to delete all attachment in single click. I have created one plugin but it is display on all attachment. here is snapshot... Delete all link is created by plugin in the end of all attachment. I want to display after/below Download All link is...

how to create JIRA quick filter where assignee is Unassigned

jira
I defined a unassigned user in my JIRA account and now I can assign to unassigned user. when I want to get all those tickets using quick filter - I can't. any solution / workaround will be most welcome.

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

php,curl,jira,jira-rest-api
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 message. Yes, I...

HTTP request failed! HTTP/1.1 400 Bad Request

php,google-app-engine,jira,jira-rest-api,http-streaming
I am trying to create a issue in Jira . I am able to make a GET request with a proper response, but the problem arises when i make a POST request.Here is the code. <?php $userName ='xxxxxxxxxxxxxxxx'; $password ='xxxxxxxxxxxx'; $data = ['fields' => ['projects'=>['key'=>'ABC'],'summary'=>'abc','description'=>'abc','issuetype'=>['name'=>'Task']]]; $data = http_build_query($data); $context =...

Excluding properies for JIRA JQL search using REST API

jira,jira-rest-api
I am using JIRA rest api for jql search. It says we can filter out fields using fields parameter. Is there a way we can filter out properties from a particular field. eg. field assignee has many properties. But I am interested only in property displayName. Is there a way...

Javascript JIRA Extension not working on hover

javascript,jquery,plugins,jira,atlassian
I have developed some sample of Javascript that creates a JIRA tool tip (using the Tipsy AUI guide - https://docs.atlassian.com/aui/5.4.0/docs/tooltips.html) of the Ticket status, Summary, Assignee and fixVersion when you hover over an issue-link. Mainly to be used on the issue search page to prevent continuous Right Click -> Open...

Jira API issueLink connect two different instances

jira,jira-rest-api
So, I have 2 different instances of Jira (let it be A and B), but they are connected with each other. I can create manually a link in an issue within A, pointing to an issue within B instance. So, I can track issues from other instances. But how will...

Update JIRA ticket status using REST API

curl,jira,jira-rest-api,jira-rest-java-api
I am able to create a ticket in JIRA using CURL command and having a json data handy. curl -D- -u : -X POST --data @< filename> -H "Content-Type: application/json" http://< hostname>:< port>/rest/api/2/issue/ I was now trying to update the status of the ticket generated but was getting the following...

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

php,jira,atlassian,jira-plugin,jira-rest-api
I have a customized filter which will give me list of issues. Currently there is a option to export the filter results to XML. Is there any way to automatically export the XML . Currently i have to export it to XML format every time. My requirement is to export...

Get notification in my client code

java,jira,jira-rest-java-api
I want to get the notifications about any change in any issues in my jira server. I have basic code for connecting jira from java code using jira-rest-java-client library that they have provided. I searched their javadocs and also went through some classes in that API library but I could...

jira-python package in pip has gone?

python,pip,jira
I tried to install jira-python via pip. pip install jira pip install jira-python jira package installed normally, but jira-python package returns error that there is no matching version. I think there seems a problem with package in pip. https://pypi.python.org/pypi/jira-python page also rises 404 error. Is there any method to install...

Jira Errors with Calculated Number Field

jira,atlassian,jira-plugin
We try to calculate a WSJF Number for internal priorization of Issues based on 7 variables which can be choosed in dropdowns (customfileds). the calculation works and the calculated number field with the wsjf number can be seen. but the formula seems somehow making constant errors in the logs and...

configure custom fields per project in jira

jira,atlassian,jira-plugin
I'm totally new to the jira. my project uses configuration schemes which are shared with other projects. So my requirement is I need unique configuration for custom fields. creating copy of existing field configuration and apply to the project is not applicable.if so, I need to create many copies of...

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

jira,keyword,jql,python-jira
I am trying to write a JIRA query to query a bunch of defects. The problem I am having is that if there is a JQL keyword in the list of defects I am querying, the entire query fails and spits out the following error: JiraError HTTP 400 - text:...

SQL Query for JIRA issues

sql,database,oracle11g,jira
I have to get some data from JIRA database and create a view to show them. In our JIRA, we have around 100 projects. We need to create a Oracle view to visualize following data. Our work-flow has following statuses Open Fix Resolved Test Validate Closed Rejected For a single...

SQL query for JIRA database to find linked issues

sql,jira
I am trying to get information directly out of the Jira database. I want to programmatically find all issues that are linked to a particular issue (issue links such as "is developed by", "is continued by" etc.) I have a query which only returns one issue, when I know that...

Tomcat behind an apache proxy error on path

java,apache,tomcat,jira,mod-proxy
I'm trying to configure my apache 2.2 as a proxy to some applications on a server. tomcat-jira : Installed with Jira´s installer; tomcat-dev : Just a container for another applications. First, my httpd.conf is like this: ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /jira...

JIRA jql to get all users who have touched a ticket

jira,jql,jira-agile
I had been trying to get the list of all issues who had been assigned to some one else at some time and changed at present I had tried this piece of code assignee was "UserA" and assignee != "UserA" It would return all issues that this user had previously...

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

jira,jql,jira-agile
I have a problem in which I need to generate a dashboard for a large feature which comprises multiple epics. I would like to be able to search for all of the stories, maybe even technical tasks as well, under any epics which contain the feature name and return this...

JIRA: How a Subtask can Create a Subtask

workflow,jira,parent,atlassian,jql
Core Question I know how to automatically create subtasks when the Parent Status changes, But How do I automatically create subtasks when another subtask closes (Without changing the parent status)? Note: I'm currently using a combination of the Script Runner and the MISC JIRA Workflow plugins....

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

mysql,jira
I am trying to pull data from the jiaissue table, along with data from custom fields for the same issue. Some of the custom fields have their values in the customfieldvalue table and some others in customfieldoption table. Here is what I have so far: SELECT i.id, i.pkey FROM jiraissue...

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
I am currently working on an ASP.NET visual basic MVC application that will consume a webhook that has been fired from JIRA when it has been fired, then it will display certain bits of that information in the application. So far I have successfully got the Webhook to fire successfully...

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 am currently trying to retrieve information from a URL of a JIRA Issue using an MVC application coded in Visual Basic. I am calling the URL by using a GET request in AJAX. The URL is successfully returning the correct information in POSTMAN. But when I try to use...

JQL is not working as per expected

jira,jira-rest-java-api
This is an interesting thing. I created a JIRA issue using a java rest client provided by JIRA(JiraRestClient). When I try to search the issue in the JIRA ui by using JQL in advanced search reporter = user123(where user123 is the user i used to create the issue) I can't...

Add custom workflow to “Create project” screen

jira
is there a way to add custom workflow to "Create new project" screen? http://s13.postimg.org/f1acwcerr/Untitled_1.jpg - create new project screen Or make my custom workflow to be default, but seems that it's not possible at the moment. The problem is that I created a workflow that suits my needs better than...

Python: Subprocess call with wget - Scheme Missing

python,jira,wget
I'm trying to trying to run the command wget from within a python script. The follow wget works perfectly fine when just entering it on the command line, but it gives me a scheme missing error when I try to do it with subprocess.call([]) I'm not too sure how to...

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

jira,jql
I want to create a filter to check the issues that my team members has worked on yesterday. How can I do that. I treid this. watcher in membersOf("TEAMX") AND updatedDate < -1d AND updatedDate > -2d ORDER BY updatedDate asc But it gives an issue watched by member of...

Jira / Cards assigned to a user in a given timeframe

jira,jql
We use Jira extensively in our project, and I am attempting to create some custom reports which should list all cards assigned to a user within a given timeframe. For example: Get all cards I worked on in August 2014. Is that even possible without direct DB access? P.S. I...

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

php,oauth,jira,jira-rest-api
I am developing some tools for login in Jira by using Oauth. I am using sample tutorial i.e. https://bitbucket.org/atlassian_tutorial/atlassian-oauth-examples/src/d625161454d1ca97b4515c6147b093fac9a68f7e/php/?at=default In response it shows [response] HTTP/1.1 401 Unauthorized Server: Apache-Coyote/1.1 WWW-Authenticate: OAuth realm="http%3A%2F%2F10.36.4.32", OAuth realm="http%3A%2F%2F10.36.4.32",...

Jira API getting attachment

php,api,jira,jira-rest-api
I've written some code that displays a list of attachments. The problem is, though, that I want the user to be able to view the attachment without being logged in. Is there a way to authenticate for the user? Here is my code: //to get cases. this returns a list...

Jira post function - get current issue ID / Key

jira,jira-plugin
I'm writing post function that will change custom fields values on transition. I need to get issue Id or Key. Problem is that I can't access any data through Issue issue; becouse object is empty...