Set specific watchers with post function and allow users to add watchers during create

One of our workflows requires a few users to be automatically added as watchers when a ticket is created.  Additional users may also need to be watchers and might be added during creation.  I've added a post function to the Create step to add the required watchers, selecting the new "Append value" feature.

Unfortunately, during issue creation, if the reporter manually adds a watcher to the field, they receive the following error:

Error creating issue: Unable to update custom field customfield_10230 - Watchers in issue [SETUP-8].

It turns out that the tickets are actually being created, and the manually added watcher is included, but the post function watchers are not.

Here are the post functions for the create step:

  1. Creates the issue originally.
  2. The value mickey.mouse, minnie.mouse, will be appended to field Watchers, or set if it is a multi field.
  3. Re-index an issue to keep indexes in sync with the database.
  4. Fire a Issue Created event that can be processed by the listeners.

Here is the description of the new "Append Value" option:

If set, the given value will be appended to the field. 
Or if field supports multiple values, then the given value will be set without unsetting other ones.

I've tried adjusting the post function value to include a leading comma, a trailing comma, both and no commas.  I've also tried removing the trailing comma from the watchers field when manually adding a watcher.

Looking for suggestions


3 answers

This widget could not be displayed.

Where did you see the Watchers field where you could update or append the value? Is this out of the box, or did you install the Watchers Field plugin from the marketplace? -Kelly Schoenhofen

This widget could not be displayed.

It's an option in JIRA 6.4.x (possibly earlier versions).

This widget could not be displayed.

We're on 6.4.2 and I don't have Watchers listed under Custom Fields. Thanks though! I'll keep looking.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

82 views 1 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you