Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Hello, 

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:

https://community.atlassian.com/t5/Answers-Developer-Questions/Calling-REST-service-from-groovy-script-Encoding-troubles/qaq-p/474914

or here

https://community.atlassian.com/t5/Answers-Developer-Questions/Making-a-REST-call-using-script-runner/qaq-p/576712

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

https://scriptrunner.adaptavist.com/5.2.2/jira/remote-control.html

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....

/Søren

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

184 views 2 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you