import org.swift.common.soap.confluence.ConfluenceSoapServiceServiceLocator
def locator = new ConfluenceSoapServiceServiceLocator()
def service = locator.getConfluenceserviceV2(new URL(“http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1″))
def token = service.login(“admin”, “password”)
def page = new RemotePage (
content: “groovy_working”,
creator: “admin”,
title: “groovy”,
space: “groovy”,
homePage: false,
created: Calendar.getInstance(),
modifier: “admin”,
version: 1,
modified: Calendar.getInstance(),
)
service.storePage(token, page)
I am using the above code where I need to create automatic page in confluence for a project for any issue created under that project in JIRA.
I have downloaded groovyrunner plugin. and I could use the script runner plugin in my JIRA successfully . But whenever I am trying to run the above code I am getting result as ”
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script3.groovy: 7: unable to resolve class RemotePage @ line 7, column 12. def page = new RemotePage ( ^ 1 error “….
The URL above corresponds the one of the confluence on my local server
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.