Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Generate an automatic comment on a Jira issue when a linked Confluence page is updated

Hello everybody!

I asked last week the following question in the Atlassian community:

 

I always link relevant confluence pages to the Jira issues so that I can make my work more traceable. I do that through the Jira ticket as soon as I've created the relevant confluence page. 

Is it possible to automatically generate a comment on a Jira issue when a linked confluence page is updated?

I was wondering if that'd be possible through the Jira automation feature or through some other way.

 

And I got the following response:

 

At this time, Automation for Jira doesn't support triggers from confluence events, so it is not possible using Automation for Jira alone.

One possibility would be to ask the Script Runner for Confluence community. If you had a script triggered from confluence, you could send a web request to an Automation for Jira 'Incoming Webhook' trigger, which is a trigger for your rules which listens for web requests on a generated url. In the web request payload you send from your Confluence script to this webhook endpoint, if you include the issue ID, you could then extract that ID from the payload and add a comment to the issue in your rule.

 

So I wanted to ask here as well. Is it possible through the ScriptRunner to have a script where when a confluence page is updated and it is linked to a jira issue, a comment is automatically generated to that Jira issue letting the watchers know that the Confluence page was updated?

 

I am thankful for any further help. Thank you a lot in advance!

1 answer

1 accepted

0 votes
Answer accepted

Hey, @Evanthia Charalampidou ! We just published a script to the Adaptavist Library based on this exact use case.

https://library.adaptavist.com/entity/comment-on-jira-issue-for-linked-confluence-pages

The script presumes that you have ScriptRunner for Confluence and ScriptRunner for Jira, though you need only to configure the Event Listener in Confluence. The script is written for Jira 8.x and Confluence 7.1+, but could probably be tweaked for a lower version so long as you have the latest compatible version of ScriptRunner.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

146 views 1 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you