I already found one topic on this unanswered from 2007.
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?
Community moderators have prevented the ability to post new answers.
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...
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, but this API is undocumented at https://docs.atlassian.com/jira/REST/latest/
So how can a user find this solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.