Watcher automation from Confluence to Jira
Asked by Sherry Nightingale:

Hi

I have an automation rule from Confluence to Jira that states:

When the status is changed on a Confluence page create a task in a Jira project and auto populate a required set amount of fields

I've added a 'Then: add an action \> and manage watchers and included the names but when I run the test the names aren't added as watchers

They need to be added as watchers when the ticket is created on status change in Confluence

Any guidance greatly appreciated


Answers:
author: Sherry Nightingale
body: [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976)

Just to clarify - are you saying that I should create an automation rule in Jira that when a ticket is created automatically from a Confluence automation rule that watchers are added?

Thanks

Sherry

comments: author: Marc - Devoteam
body: Hi [@Sherry Nightingale](/t5/user/viewprofilepage/user-id/5299338)

Correct, as the add watchers option for Jira issues only exists in automation on Jira.


author: Sherry Nightingale
body: Thanks [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976)

How would I set / create this automation rule - what would I need to tell it?

Trigger \> when: issue created

Then: Edit issue fields

And: Add watchers

????

But how can I get this rule to run when certain tasks are created via the Confluence automation rule?


author: Marc - Devoteam
body: Hi [@Sherry Nightingale](/t5/user/viewprofilepage/user-id/5299338)

Add conditions, like;

- only in project

- type of issue

- reporter equals

- creator equals

- other differentiations that are set in the created issue from the automation in confluence, labels, components, custom field values, etc...

Choose the ones that apply.


author: Sherry Nightingale
body: The only identifier that I can use in the Task is the Summary that has VIEW in it - if I used the Summary Field {{issue.summary}} VIEW would that work?

The automation rule would then look like:

When: Issue created

Then: Edit issue fields \> Summary {{issue.summary}} VIEW

And: Add Watchers

Thanks

Sherry


author: Sherry Nightingale
body: [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976)

I tried with {{issue.summary}} VIEW but it only added VIEW in to the Summary

I then tried {{issue.summary VIEW}} and it worked :-)

Thanks for your time and support


author: Sherry Nightingale
body: ![Confluence Automation Rule.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/344082iD2CCB107ED5871BC/image-size/large?v=v2&px=999 "Confluence Automation Rule.PNG")

comments: author: Marc - Devoteam
body: Hi [@Sherry Nightingale](/t5/user/viewprofilepage/user-id/5299338)

That would work, but in your rule in Confluence, I also see the field Business Unit, Strict Embargo, etc..

If any of these fields are mandatory on issue creation, you could use these as well. or if they need to contain a value.


author: Sherry Nightingale
body: [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976)

I looked at all of the fields and unfortunately the values aren't only used for VIEW so I couldn't use them as the identifier - at the moment the Summary field has VIEW in it - in the future this may change but for now i'm happy to have this in the rule :-)


author: Marc - Devoteam
body: Hi [@Sherry Nightingale](/t5/user/viewprofilepage/user-id/5299338)

Can you share your automation rule as a screenshot, this helps members to look at your configuration and maybe see the issue directly.

comments: author: Sherry Nightingale
body: [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976)

I've provided the confluence automation rule screen grab


author: Marc - Devoteam
body: Hi [@Sherry Nightingale](/t5/user/viewprofilepage/user-id/5299338)

The add watchers in Confluence automation, you can add or remove watchers from pages or blog post.

I think the only solution is to create in Jira that check on issues created in the project and add the watchers.


Tags: cloud

confluence-cloud