JIRA Confluence synchronization
Asked by Haris Becic:

Hello,

I would like to know if it is possible to create the issue in Confluence for some project and then this issue appears in this project with label "confluence" and is assigned automatically to responsible user? (because of label confluence)

thanks


Answers:
author: Haris Becic
body: Hi Boris,

for example if someone wants to create the issue that is relevant for Confluence but he wants to have this issue in the issue list in JIRA Project. This picture shows how it looks like in Confluence. If i choose for example "Project 1" and then i go to JIRA project this issue that i created should be in the issue list of this project with label confluence.   

<br />

<br />

<br />

<br />

image2016-6-8 12:39:22.png  
[](https://community.atlassian.com/t5/Confluence-questions/JIRA-Confluence-synchronization/qaq-p/432665?attachment-id=12086){#link_1186c8ec0b8bda}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/73290/1/image2016-6-8%2012%3A39%3A22.png){#display_1186c8ec0b8bda_0}


author: Boris Georgiev [Appfire]
body: Hi Haris,

Would you elaborate on "create the issue in Confluence" and also give a step by step description of what's the expected user experience ?

I would say that you'll be able to achieve that using Script Runner for Confluence but I'm not sure I get the whole picture.

comments: author: Haris Becic
body: Hi Boris,

for example if someone wants to create the issue that is relevant for Confluence but he wants to have this issue in the issue list in JIRA Project. This picture shows how it looks like in Confluence. If i choose for example "Project 1" and then i go to JIRA project this issue that i created should be in the issue list of this project with label confluence.   

<br />

<br />

<br />

<br />

image2016-6-8 12:39:22.png


author: Boris Georgiev [Appfire]
body: What you're trying to achieve does not seem to be possible or at least it will not be easy.

Here're some ideas you might want to consider:

1. Make Labels required field, so it will appear on the screen in confluence and the user will need to fill it in - of course this means that **Labels**will also be required when creating issues in JIRA and also the user might not put the right label
2. Create an issue listener (using Script Runner) which will update the issue and add **confluence** label whenever an issue is linked to a Confluence page ("**Remote Link**" field is updated) - the downside here is that any issue linked to confluence will have that label and not only the issues created from Confluence.
3. Implement a[custom web item](https://scriptrunner.adaptavist.com/latest/confluence/fragments/WebItem.html) with Script Runner which will bring a [dialog](https://scriptrunner.adaptavist.com/latest/confluence/fragments/WebItem.html#_dialogs_advanced) which will require the issue parameters like summary, issue type etc.. and then create the issue in JIRA using the rest api in a way similar to [that](https://scriptrunner.adaptavist.com/latest/confluence/interacting-with-jira-from-confluence.html) also adding the right label. Then the code can insert a JIRA issue macro in the same page. - This approach is quite complex and also will have slightly different experience as the user will have to add issues while **not in edit** mode**.**
4. Create a confluence event listener which will listen to page update events and will update any issues referenced by the JIRA Issues macro, adding the right label

I have one additional question - why do you need to add label for issues created from Confluence ?


Tags: confluence-administration