Cannot get application link

Issue #27 new
Chris Dunne created an issue

Hi

I am trying to execute the following code in the Code Runner Groovy console in Jira to get the application link to Confluence.

static ApplicationLink createPrimaryConfluenceLink() {
def applicationLinkService = ComponentLocator.getComponent(ApplicationLinkService)
final def conflLink = applicationLinkService.getPrimaryApplicationLink(ConfluenceApplicationType)
conflLink
}

But I am getting the error
"Cannot invoke method getPrimaryApplicationLink() on null object"

I've attached the full code and stack trace. The code works perfectly in the ScriptRunner console.

I would really appreciate your help as I would love to use your add-on.

Kind Regards,

Chris

Comments (0)

  1. Log in to comment