create a page for next sprint for managment approval
Asked by Heba Salem:

I want create a page for each next sprint   
page title : next sprint name   
Page content: sprint goal followed by list of issues included in this spring


Answers:
author: Summer Hogan
body: Hi [@Heba Salem](/t5/user/viewprofilepage/user-id/5398094)! Welcome to the community!

You might want to see if the Sprint Planning Meeting Template works for you or at least use it as a starting point <https://www.atlassian.com/software/confluence/templates/sprint-planning-meeting>.

Once you have your sprint created in Jira and want to display it in the confluence article, go to Macro's and insert the Jira Issues Macro. Write the JQL to specify which sprint and issues you want to display and search. Then configure the columns to display and click "Insert Issues". The issues will display in a table in your confluence article.

comments: author: Heba Salem
body: **Hello Summer** thanks for ur help   
I intially created a rule to fetch the sprint filed update in a spcific jira issue and then create a page on confulnce using {{sprint.name}} as a smart value which worked well   
![automation conflunce.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/305657i0D4A0E749A9CB286/image-size/large?v=v2&px=999 "automation conflunce.PNG")

then I went on discovering the jira api's and used command line to return values for sprint goal and issues keys and summeries included in same sprint as my triggir issue   
my silly question is how to utilize these comands dynamically to auto create the page for the sprint with the correct data each time ?


author: Summer Hogan
body: Hi again [@Heba Salem](/t5/user/viewprofilepage/user-id/5398094),

There's no way to do this in Automation as all it can do is create the page with the sprint name. What do you mean by "used the API" and "command line"? Are you using an external utility like Bob Swift's CLI to issue commands to gather data? If it helps Scriptrunner can create more complex pages from a Jira issue.


author: Heba Salem
body: hello   
that would be greate if possible do u have any source explaing more how we can do this ?


author: Summer Hogan
body: Hello again [@Heba Salem](/t5/user/viewprofilepage/user-id/5398094) - If you want to go to the SR route, then <https://library.adaptavist.com/entity/create-confluence-page-for-issues?tab=cloud> can create many pages, but if you look closely at the "content" bits, you can see you can add whatever content you might want. It's not exclusive to SR either, the same principles apply for other things! See this article for more info.  
![library.adaptavist.com](https://slack-imgs.com/?c=1&o1=wi32.he32.si&url=https%3A%2F%2Flibrary.adaptavist.com%2Ffavicon.ico)library.adaptavist.com  
[Create a Confluence Page for Each Subtask of an Issue - Adaptavist Library](https://library.adaptavist.com/entity/create-confluence-page-for-issues?tab=cloud)


author: Summer Hogan
body: And if all my answers helped you, please accept it by clicking on "Accept Answer" above as that helps me.


author: Irina Mosina _TechTime_
body: HI there [@Heba Salem](/t5/user/viewprofilepage/user-id/5398094)

The easiest way is to create an automation that creates a page for you "automagically" every time the Sprint is closed.

All you need is to be a Project Admin for the selected Jira project that hosts your Scrum board. Once in the project:

1. Go to Project Settings/Automation

2. Create a new Rule

3. Choose/Search for the trigger "Sprint Completed"

4. Choose Action "Create Page in Confluence"

5. Use a template for the title like on the screenshot

6. Link your space and parent page

![CreateSprintPage.png](https://community.atlassian.com/t5/image/serverpage/image-id/305126iB9312892D6E0FD05/image-size/large?v=v2&px=999 "CreateSprintPage.png")

Enjoy!


Tags: cloud

confluence-cloud