Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Jira content to a confluence wiki page

OToole
Contributor
July 31, 2018

I am a new Jira user setting up a new project.  What they want to do is create an issue in Jira with a number of fields such as Project Name, ID, Engineering Lead, etc.

They also want an artifact of the issue in Confluence,  which is linked to Jira.  The artifact is based off of a word template that we currently fill in manually.

So we are able to take our template document and add it as a wiki page to confluence that is linked to the Jira issue using scriptRunner

So now when the user enters a project name in the jira issue,  or selects the engineering lead,   we want that to auto populate into the wiki page.  We don't want the user to have to enter each item twice.  Once in Jira and once in Confluence.

Is this possible?  Can someone provide a link to some documentation explaining how this can be done.  

Thanks

2 answers

1 accepted

1 vote
Answer accepted
Prakhar Srivastav {Appfire}
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.
August 1, 2018

@OToole

This will involve programmatic approach compared to any customisation.

The best way to approach this is to write a post function on the creation of issue. You can use ScriptRunner to write a script which will capture the field values of Jira issue and then call a REST API of Confluence that will create the page based on your design using the values from jira captured in your script .

Another simple way instead of writing a script will be to use CLI Actions , where you can call an action of creating Confluence page from JIRA post function.

 

 

Regards
Prakhar

1 vote
Jack Brickey
Community Champion
August 28, 2018

@OToole, have you considered simply including the jira issue as a filter list and include the fields from Jira that you want displayed? In this way Confluence is always kept up to date. 

OToole
Contributor
November 6, 2018

Thanks for the suggestion!  That might be just what we need.

Suggest an answer

Log in or Sign up to answer