Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

API Remote Issue Linking - How to get AppId

Martin Buchleitner October 24, 2013

I already found one topic on this unanswered from 2007.

https://answers.atlassian.com/questions/198871/how-to-programately-obtain-the-appid-for-creating-remote-issue-links-in-jira

How to get the appId parameter by code/api for remote linking 2 jiras?

According to the JIRADEV documentaion an AppID parameter is requried. I already get this parameter out of reading a manually created link.

https://developer.atlassian.com/display/JIRADEV/Fields+in+Remote+Issue+Links

This appId seems to be a GUID, but how to get its value by code so you do not have to hardcode it?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
tier-0 grump
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 26, 2013

Just answered on the original question, copying here..

he documentation could probably do with a little love here..

Remote links prefer to use the application-link id to identify the link, so for instance if you were linking to issue TST-1 on your JIRA server it makes up the global id as appId=<application link id>&issueId=<TST-1 id>.

To find the application id you can query the application link REST service, so rest/applinks/1.0/applicationlink gives you JSON with all applinks - the JSON will look something like:

<applicationLinks>
<link rel="self" href="https://jdog.atlassian.net/rest/applinks/1.0/applicationlink/4bfd3699-074f-3896-8f44-fedc79d0ee71"/>
<id>4bfd3699-074f-3896-8f44-fedc79d0ee71</id>
<typeId>jira</typeId>
<name>SDOG</name>
<displayUrl>https://sdog.jira.com</displayUrl>

The id tag is what you need...

Martin Buchleitner October 27, 2013

Thanks, but this API is undocumented at https://docs.atlassian.com/jira/REST/latest/

So how can a user find this solution?

PS: How to do a websudo via rest?

Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 29, 2014

That's current broken preventing people from properly creating remote issue links using the API, See https://jira.atlassian.com/browse/JRA-38551-- this bug is currently preventing us from implementing remote-issue-links in python-jira.

Matt Keenan March 27, 2019

This isn't solved. The Rest call recommended to get a full list of application links e.g. https://<JIRA_SERVER>/rest/applinks/1.0/applicationlink

Returns a 401 page indicating :

<status>
  <status-code>401</status-code>
  <message>This resource requires WebSudo.</message>
</status>

So how does one get past this hurdle ?

Like Vipul Sharma likes this
Florian Bauer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2019

i also want to obtain the appId - but cannot find any service endpoint.. any news here? or is there another best practise on how to link a confluence page to a jira issue via rest api?

Like Vipul Sharma likes this
0 votes
Martin Buchleitner October 27, 2013

Thanks, but this API is undocumented at https://docs.atlassian.com/jira/REST/latest/

So how can a user find this solution?

TAGS
AUG Leaders

Atlassian Community Events