-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 9.12.9
-
Component/s: Application Links
-
9.12
-
1
-
Severity 3 - Minor
-
Issue Summary
com.atlassian.applinks.api.ApplicationLinkService.getApplicationLinks() is not recognizing the non-Atlassian application links
As mentioned here https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/applinks/JiraApplicationLinkService.html
This is reproducible on the Data Center: Yes
Steps to Reproduce
- Create application links from Jira to confluence(or Atlassian apps)
- Create application links to non-atlassian apps(Liek GitLab, Github etc)
- try executing a script that uses the com.atlassian.applinks.api.ApplicationLinkService.getApplicationLinks() Api to list the atlassian application links
- Example: executing a custom script using scriptrunner like below:
import com.atlassian.jira.component.ComponentAccessor import com.onresolve.scriptrunner.runner.customisers.PluginModule import com.onresolve.scriptrunner.runner.customisers.WithPlugin import com.atlassian.applinks.api.ApplicationLinkService import com.atlassian.applinks.spi.link.ApplicationLinkDetails import com.atlassian.applinks.spi.link.MutatingApplicationLinkService Iterable links = ComponentAccessor.getComponent(ApplicationLinkService).getApplicationLinks() links.forEach( l -> log.warn("$l.name ($l.type): $l.rpcUrl"))
Expected Results
It should list all the application links that are present in jira
Actual Results
It only fetches the Atlassian links but doesn't recognize non-Atlassian application links
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available