Confluence Link to Jira Ticket
Asked by Sherry Nightingale:

Hi

I've created a Confluence automation rule that creates a Jira ticket when a page status is changed

I want the Confluence page to be linked to the Jira ticket too

What should I select in the Confluence automation rule or is it something I should do as Jira automation rule?

Thanks

Sherry


Answers:
author: marc -Collabello--Phase Locked-
body: Hi [@Sherry Nightingale](/t5/user/viewprofilepage/user-id/5299338) ,

One way to do this is to add a "smart value" to your Jira ticket creation rule in Confluence Automation. You could add the smart value \`{{content.url}}\`.

comments: author: Sherry Nightingale
body: [@marc -Collabello--Phase Locked-](/t5/user/viewprofilepage/user-id/1205132)

What action do I choose?

I'm assuming I And: Add an action to the already created rule in Confluence but not sure which action to select?


author: Sherry Nightingale
body: [@marc -Collabello--Phase Locked-](/t5/user/viewprofilepage/user-id/1205132)

This is what my rule looks like at the moment - not sure what condition / second value to include?

![contenturl.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/344483i1AA709E98FCD4F4F/image-size/large?v=v2&px=999 "contenturl.PNG")


author: marc -Collabello--Phase Locked-
body: There's a "create ticket in Jira" action, which can take the "{{content.url}}" smart value.


author: Sherry Nightingale
body: Sorry [@marc -Collabello--Phase Locked-](/t5/user/viewprofilepage/user-id/1205132) but i'm not understanding what it is you mean

In the automation rule I have already selected 'create a new' which creates an issue in Jira and populates set fields

Do I need to select 'create a new' again? Or is what you're suggesting something different?


author: marc -Collabello--Phase Locked-
body: If i understand it correctly, you should modify the action "create Jira ticket" to include the smart value.


author: Sherry Nightingale
body: Thanks - do I put the smart value in the 'additional fields' section?

I'm new to automation - can't you tell LOL

If so - how do I write it? Do I override what is already there?

![Additional Fields.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/344496i80CE708B8289E986/image-size/large?v=v2&px=999 "Additional Fields.PNG")


author: marc -Collabello--Phase Locked-
body: Just try adding the smart value.

As a first step, you can add it in the quotes after {{issue.key}} (i.e. {{issue.key}} / {{content.url}} ).

Then you'd need to click on the "documented" link and add it to e.g. another custom field.


author: Sherry Nightingale
body: What about the rest of it? There is a lot of information here do I remove all of it and just keep:

"Thanks for raising {{issue.key}} / {{content.url}}.",

{  
"fields": {  
"environment": "Thanks for raising {{issue.key}} / {{content.url}}.",  
"labels": \[  
"bugfix",  
"blitz_test"  
\],  
"Custom Field Name": {  
"value": "red"  
}  
}  
}

I don't understand what you mean by 'documented link' is it the link of the confluence page? The page will be different each time so will it know that when any page changes status that the link of that page is to be linked in the jira ticket

Sorry about all of this but I really am a layman and it needs to be spelt out to me


author: marc -Collabello--Phase Locked-
body: 1. Just keep the rest of the information for now.
2. The "documented" link are the blue letters in your screenshot above. When you click on the blue "documented", you get more information.


Tags: cloud

confluence-cloud