Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Ask help for coding a project on JAVA

laurent
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2020

Hello all people ,

I am sorry for my english i am french and i begin on JIRA.

I have create a java app with spring boot and i added all dependency on my pom.xml .

My question is where can i  find many examples on java for create a ticket , retrieve project,

modify issue etc....

 

Please help

 

thank you very much

 

1 answer

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
August 21, 2020
laurent
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2020

thank you very much for you answer but i saw the project bitbucket and i didn t find many example like this 

 

final AsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
URI jiraServerUri = new URI("atlassian url");
final JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, "name",
"password");

System.out.println("display permissions" + restClient.getMyPermissionsRestClient().toString());

try {
IssueInput epicInput = new IssueInputBuilder()//
.setProjectKey("project key")//
.setIssueTypeId(id)//
.build();
restClient.getIssueClient().createIssue(epicInput).claim();

} catch (Exception e) {
e.printStackTrace();
} finally {
restClient.close();
}

 

this part of code from stackoverflow i search many examples as part of code

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events