not able to create jira issue link using JRJC


I have implemented jirarestclient using AsynchronousJiraRestClientFactory. Then fetching Issuerestclient like below and trying to link issue.

IssueRestClient issueRestClient=jiraRestClient.getIssueClient();


It gives below exception for json creation. Can anyone give an example of creation of issue Link. org.codehaus.jettison.json.JSONException: A JSONObject text must begin with '{' at character 1 of <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: http://localhost:8080/rest/api/latest/issueLink/rest/api/latest/serverInfo</message></status>



at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(

at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(

at com.atlassian.util.concurrent.Promises$Of$3.apply(

at com.atlassian.util.concurrent.Promises$2.onSuccess(

1 answer

Have you configured properly base url for your JIRA instance? The URI in exception doesn't look good:


I guess that your base URI should look like that: http://localhost:8080/</strong<>>

And I guess that you've used that base URI instead: http://localhost:8080/rest/api/latest/issueLink

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 4 hours ago in United States

Atlassian acquires AgileCraft

         Good Day, Bad bad traffic, not sure why!!!! 1/2 hour commute took me 2 hours today 🤯 What helped me is that I kept browsing LinkedIn until...

25 views 1 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you