Confluence Link to Jira Ticket

Sherry Nightingale
Contributor
August 29, 2024

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 

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024

Hi @Sherry Nightingale ,

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}}`.

 

Sherry Nightingale
Contributor
August 29, 2024

@marc -Collabello--Phase Locked- 

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?

Sherry Nightingale
Contributor
August 29, 2024

@marc -Collabello--Phase Locked- 

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

contenturl.PNG

marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024

There's a "create ticket in Jira" action, which can take the "{{content.url}}" smart value.

Sherry Nightingale
Contributor
August 29, 2024

Sorry @marc -Collabello--Phase Locked- 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?

marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024

If i understand it correctly, you should modify the action "create Jira ticket" to include the smart value.

Sherry Nightingale
Contributor
August 29, 2024

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

marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024

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.

Sherry Nightingale
Contributor
August 29, 2024

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

marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024
  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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events