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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Does anyone know how to set the Summary in a Jira issue as a Confluence page title?

 Does anyone know how to set the Summary in a Jira issue as a Confluence page title using Scriptrunner for Confluence?

1 answer

0 votes
Jonny Carter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jul 12, 2021

That should be quite doable. The particulars will depend a bit on the context. Do you want this to happen in a one-off script from the Script Console? Do you want this to happen on a schedule using a Script Job? Or in response to an event via a Listener?

The main idea would be to get the Page object that you want to extract the title from, then contact Jira to update the particular issue via its issue REST API. If the Jira instance is linked, then this is somewhat easier to do. See the documentation on using App Links for details.

Those are the pieces. If you can be a little more specific we might be able to provide a more stitched-together example. For starters, you should have a look at the Jira-specific examples in our documentation.

Thank you, here's the outline I'm currently using

// you have to have ScriptRunner for JIRA Cloud addon installed in order to use this example
def projectKey = 'SAM'
def taskType = get('/rest/api/2/issuetype').asObject(List).body.find { it['name'] == 'Task' }['id']

Map result = post('/rest/api/2/issue')
.header('Content-Type', 'application/json')
fields: [
summary : 'A new page was created',
description: "A page was created by ${page.creatorName} with title: '${page.title}' in space: '${page.spaceKey}'",
project : [
key: projectKey
issuetype : [
id: taskType
.asObject(Map).body"Issue has been created " + result.self)


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events