311 questions
0
votes
0
answers
65
views
Getting the Feature Link (Epic Link?) value using REST API JQL
Hey all I am trying to figure out how to get my Feature Link value from a JQL using the REST API.
When I do:
/rest/api/2/search?jql=sprint in openSprints() AND assignee="bob"
I get a lot ...
0
votes
0
answers
41
views
SunCertPathBuilderException connecting to Jira Rest API
Hey all I am trying to connect to my local Jira server via Java but I get the error of:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid ...
0
votes
0
answers
287
views
JIRA API : Update drop down custom field using jira rest api
I have updated the drop down custom field value of an issue using jira api,
https://domainname.atlassian.net/rest/api/3/issue/{issue id}
and the below payload,
{
"fields": {
"...
0
votes
0
answers
111
views
API to fetch the 'Activity' of an issue in Jira dc
In short: I am looking for an API or any other method to fetch the details of 'Activity' within a Jira issue.
Detailed description: My application involves creating issue payloads and sending them to ...
0
votes
1
answer
90
views
User Context in JWT when sending request to Jira API
I am making a Jira Plugin, and I am testing my plugin. On my Jira I have two projects Project1 and Project2 and as the owner of the Jira i have access to both, but a different user(my friend) only has ...
1
vote
0
answers
66
views
How to add Https Proxy when Use jira-rest-java-client-core library?
When I Use jira-rest-java-client-core libary, I use the code as below:
JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
URI jiraServerUri = URI.create("xxxx-my-...
0
votes
1
answer
341
views
How to validate Jira webhook event with symmetric key using java
I am trying to validate whether an event received on my end from Jira webhook is valid and safe to use. I am using Java code and trying to validate but it's failing with the message
JWT signature ...
0
votes
1
answer
417
views
How can I export jira archived issue csv file using Java code
I need the list of archived issues list, we have implemented a method with the scriptrunner but the issues from the project that are archived are not picked up, so we are looking for a method that ...
1
vote
0
answers
27
views
Can multiple Jira addons can use same source code?
I have two products which have same functionalities, almost same APIs but different UI.Inorder to avoid the code duplication, I would like to use same code for both application. Is there any way to do ...
0
votes
1
answer
571
views
Create Jira Issue using JiraRestClient (Java)
I am trying to programmatically create issues in Jira using the JiraRestClient. I am using the following dependencies
compile 'com.atlassian.jira:jira-rest-java-client-api:5.2.4' compile 'com....
1
vote
0
answers
871
views
Error creating bean with name 'jpaSharedEM_entityManagerFactory': Cannt resolve ref to bean 'entityManagerFactory' while setting constructor argument
My ms rest api existing code implemented with jpa repository and on top of this code I am implementing 2 more endpoint where I will need to use jdbc template for oracle and impala jdbc template as ...
-2
votes
1
answer
276
views
Script function failed on Automation for Jira rule:IllegalArgumentException: wrong number of arguments
I am trying to use the HAPI API for Scriptrunner and I am getting the following error:
My code is very simple, I am using the following:
Collection < ProjectComponent > ...
-1
votes
1
answer
94
views
JIRA Historic Data with Structure Plugin
i want to connect JIRA to Power BI for analyzing many JIRA projects. We use the JIRA strucutre Plugin.
My goal is to have the peristed, histroic data from the JIRA issues. A example is to analyze the ...
-1
votes
1
answer
1k
views
How can i query update of a custom field within last 100 days in Jira (JQL)
I have a custom filed as "SIB".
i want to query all the bugs that have updated "SIB" in last 100 days.
I tried few things like
CHANGED (doesn't works with my field)
updated > -...
0
votes
1
answer
366
views
The value of a list of components and a list of versions cannot be shown on new created Jira issue even though getters return non null values
I am using an automation rule and executing the following code in scriptrunner to create a new issue:
Here is the code block causing the problem:
Issue newissue = Issues.create(projectName, 'Feature')...
0
votes
1
answer
87
views
Get response time excluding prepared time in rest assured
this screenshot is from Postman tool while hovering over Time after get request, is there any way to get time which is highlighted in red (excluding prepare time) as Rest assured is giving the yellow ...
0
votes
1
answer
75
views
Component name is not unique, java.lang.IllegalArgumentException in Jira Scriptrunner for the line issueLinkManager.createIssueLink
I am writing code to create a new linked issue and I am having the following error thrown
void createFeature(Issue issue, Collection<ProjectComponent> componentList){
def issueLinkManager = ...
0
votes
1
answer
120
views
NullPointer exception for issueLinkManager.createIssueLink
I am getting a null pointer for issueLinkManager.createIssueLink even though all the parameters of the API are not null. I am printing the parameters 1 by 1 and none of them is null.
Here is my code:...
0
votes
1
answer
61
views
Create a new linked issue but new issue ID is null in Jira
I would like to create a new linked issue of type feature for a super feature issue. Here is my code:
void createFeature(Issue issue, List<String> componentList){
// Issue issue
//def ...
2
votes
1
answer
96
views
Which line causes a null pointer exception in Jira automation rule?
I am using a Jira automation rule and I would like to know which line is causing this nullpointer exception.
I am getting an error message saying that I have a null pointer exception but no ...
0
votes
1
answer
190
views
Script function failed on Automation for Jira rule: error: groovy.lang.MissingPropertyException: No such property: issueLinkType for class
I am using an automation for Jira rule to be executed once the user clicks on a button. I would like to automatically create some linked issues once the user clicks on the button but I receive the ...
0
votes
1
answer
195
views
How to throw an exception because the issue has no components in ScriptRunner postfunction
I am using Scriptrunner and I would like to throw an exception because the issue has no components as shown below:
How can I do that?
I am using the following code and I am checking if the ...
0
votes
1
answer
72
views
How to create a button that can be clicked and lead to the execution of a postfunction?
I would like lto create a menu item that can lead to a postfunction being executed once I click on it. I would like the menu item to look like the one shown below:
I feel like the only way to have a ...
0
votes
1
answer
92
views
Push comments from JIRA to Salesforce using APIs
My Project is looking for a way to push the comments from JIRA to Salesforce without using a plugin/third party tools due to bureaucratic overhead. I have searched a lot and every one of them suggests ...
0
votes
1
answer
327
views
How to make a custom field required in Jira?
I have a Jira custom field and I would like to make it required for a specific project. How can I do that?
0
votes
1
answer
2k
views
Write a JQL query for an issue that has issue links of type defect and with the status open
I need to write a JQL query that is looking for issues in a specific project with issue links of type resolves. Here is my JQL query: project = NATMF and issuetype = Fix and issuelinktype = resolves, ...
-2
votes
2
answers
138
views
Write JQL to find an issue that has subissues
JQL to check issues of type Fix that have non empty issue links. I need issues under the resolves as shown below in the following screenshot:
1
vote
0
answers
89
views
Java RMI : How to transfer non-remote existing object class
I wanted to transfer the Issue class from jira rest client api, and apparently this class is not serializable.
Here my code :
rmi_server side
JiraConnection.class
public interface JiraConnection ...
2
votes
2
answers
1k
views
Add label to an existing Jira Issue using the Java Jira Client
I am trying to update a Jira Issue and add/update some field.
I am using https://www.baeldung.com/jira-rest-api to setup my java rest client. I can now connect and update some of the fields for the ...
6
votes
3
answers
12k
views
Strange Issues with javax.ws.rs.core.UriBuilder
Today I updated a command line application to Spring Boot 3.0.6
I receive a BeanCreationException exception when starting the application. Reason is
Caused by: java.lang.ClassNotFoundException: javax....
0
votes
1
answer
593
views
Create dynamic web hook for Jira, connect Spring boot
I am attempting to register a web hook to my Jira cloud instance and I am following their documentation but I have not been able to make it work.
Specifically the section: Making API requests to the ...
2
votes
1
answer
410
views
What is the best option for my JIRA integration? [closed]
I want to write JIRA integration to implement my own nodejs backend, but I’m confused by the options. I just want to send issues and similar events to my own backend regardless of user input. So I ...
0
votes
1
answer
746
views
How do I set the value of a custom field in Jira Server using the REST API via JRJC?
I'm trying to use JRJC to create an issue, and I must set a custom field before that is successful. I tried searching for examples, but did not find any.
Here's the code I am using to create the issue:...
2
votes
0
answers
364
views
Mocking JIRA java client objects using mockito
We are integrating our application with JIRA, to create an issue with attachment.
Method 1:
public JSONObject createIssue() {
IssueRestClient issueClient = restClient....
1
vote
2
answers
5k
views
Jira Atlassian API Pagination
I've used the JIRA API a few timees, but only for small extracts so I've never had to use pagniation to return more results than the max result.
Here's the documentation for the API: https://developer....
1
vote
0
answers
31
views
Rest or java API to get a user's security schemes or security levels
Is there any REST API or Java API through which I can get a user's security schemes or security levels? I want to know to what security level or security scheme the user is added.
0
votes
1
answer
248
views
Making plugin for JIRA
I am creating a JIRA plugin to fetch the issue-level permissions. Currently, the project-level permissions are working extremely fine but the issue-level permissions are not working. I tried finding a ...
2
votes
0
answers
203
views
Unable to create a Connection with Jira - JiraRestClient
I am trying to create a JiraRestClient using Basic authentication.
JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
URI jiraServerUri = new URI("*");
try (...
0
votes
0
answers
1k
views
Error groovy.lang.MissingPropertyException: No such property: field for class: java.util.LinkedHashMap$Entry formating
I am struggling with getting the correct output from a complex json groovy object. The structure of the json object is:
{
"self": "https://pretty.atlassian.net/rest/api/3/issue/TWP-20/...
0
votes
1
answer
1k
views
Run a query in ScriptRunner JQL to know the number of issues in a project that were last updated more than 1 year ago
I would like to run a query in ScriptRunner JQL to know the number of issues in a project that were last updated more than 1 year ago. I am using the following code in the script console:
import com....
1
vote
0
answers
183
views
Simple REST endpoint and fragment not working Script function failed on issue: issue: PIE-68635, user: mouh, fieldId: __init__, file: <inline script>
I am using a really simple REST endpoint and its corresponding fragment and it is not working for me.
The fragment I created is the following:
Here is the error that I get printed in the log:
2022-...
0
votes
1
answer
562
views
Simple JIRA DataCenter REST endpoint not working
I am trying to perform a REST endpoint with its corresponding web fragment but I am getting the error:
script function failed on issue: issue: SF-347, user: mouh, fieldId: __init__, file: <inline ...
0
votes
1
answer
964
views
Stackoverflow exception when transitioning an issue status to itself (tested to tested) in Jira Scriptrunner
I am using the Jira custom post function of ScriptRunner on a transition to be executed by the user from one state to itself. I am having a StackOverflow exception after executing a transition that ...
0
votes
1
answer
929
views
Can't get a succesful jira create issue api response
I am trying to call jira rest api POST /rest/api/3/issue from a node js application. I am getting the following error even though am passing correct details. I am passing issueType as 10103 and ...
1
vote
1
answer
1k
views
Unable to update labels in a JIRA issue via JIRA REST API
I am sending the below PUT request to JIRA and unable to update the ticket. I am receiving 200 Http Status code with the ticket details JSON in response. However, this doesn't include the updated ...
-1
votes
1
answer
617
views
API to fetch last login date jira cloud
Is there any JIRA REST API which can give information about last login time of all users for jira cloud platform?
If yes, then please provide me the details of the request URL.
0
votes
2
answers
2k
views
How can I make a Jira REST API call to get a specific value?
I am making a Jira REST API call using this example url:
http://example.com/rest/api/2/search/?jql=project=example%20and%20type=test&fields=customfield_14600
Here is an example of the returned ...
1
vote
0
answers
100
views
JIRA-Rest-JAVA-API : How to refer POJO variables without setter method while converting to JSCON
JIRA JQL Search Query: post method with end point http://localhost:8080/rest/api/2/search
body:
{
"jql":"project = QA and key=123",
"startAt":0,
"...
0
votes
1
answer
1k
views
How to pass Form data variables to the rest api call from stand alone java code
I got a situation to test the REST API's Delete call through Java code. I need to pass Form Data with 2 variables as below screenshot to the api request. someone please route me how to do that..
try {...
0
votes
0
answers
99
views
How to create a Jar file using centos command line
I am new to java, I have a Centos Virtual Machine installed. I have installed jira server and created a sample plugin as per the atlassian-sdk-documentation.
I have this repository. This is a maven ...