I need to get data from specific confluence page and assign it to jira scripted field (scriptrunner) Edited

I need to get data from specific confluence page (i have the url/page id) and assign to a jira scripted field using groovy/scriptrunner.


I know how to assign data to a scripted field - the problem is getting the data out of Confluence.....


This should be basic stuff, but inspite of using an entire day looking for info on how to do this, no luck at all.


Tons of info on creating confluence pages based on jira data, but NO information on how to get data the other way.


Frustration level = "eminent explosion"!

1 answer

0 votes


You could

1. Call a Confluence REST API function from your code. You can find examples on how to call a REST function from groovy code here:


or here


2. If you have Scriptrunner in Jira and Confluence you could use remote control functionality from Scriptrunner. You can find more information here:


Hello Alexey

Thanks for reply, but I'm still not any wiser.

I need to see an example where somebody actually calls the confluence REST api from within a scriptrunner/groovy function, and GET's confluence data, e.g. macro-content into a jira multiline text variable.

I don't assume that this can actually be done, as there are NO examlples anywhere.

Thanks for the effort anyways....


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 12 hours ago in United States

Administrators Cleanup

Good morning, After a long weekend cleaning up, I am still in the cleanup mode 😊. I am curious to know: When do you feel the urgency to cleanup your Atlassian Tools? How many times do y...

16 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you