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

How to remove Watchers or add new ones using ConfiForms?

I am trying to use below solution to remove the person that creates the ConfiForm as a watcher, but is not working for me. I set it up exactly as indicated. I also want to know if there is a way to 'replace' a watcher with a user given in the form.

https://wiki.vertuna.com/display/CONFIFORMS/Handling+Confluence+auto-watch+when+the+form+has+file+fields

1 answer

1 accepted

The question is actually about ConfiForms for Confluence, not Jira as the metadata says...

Hard to tell what you are doing wrong, but you need to have 2 of this kind IFTTTs - one to remove the current user as a watcher and another to add another user from your form's field as a watch. This field needs to hold the username of the user you want to add as a page watcher

Thank you Alex, 

So, there is no way a ConfiForm can change the default Watcher in "JIRA", not in Confluence? 

I am trying to do change that default watcher with the username of another person that is input in a field in the form. 

Well, the IFTTT you are referring to is the one the manages page watchers in Confluence. It has nothing to do with Jira issue watchers

What you need is to setup IFTTTs to call this API https://docs.atlassian.com/software/jira/docs/api/REST/8.9.0/#api/2/issue-removeWatcher

 

Could be through applink service IFTTT or via a web service request if you prefer to use service accounts to communicate with your Jira

Thanks Alex, 

so, should I add: DELETE /rest/api/2/issue/{issueIdOrKey}/watchers

to the field: Fire IFTTT action only when this condition/filter is met in the 

ConfiForms IFTTT Integration Rules’ Macro?

No sir, not at all.. 

The parameter you mentioned ("Fire IFTTT action only when this condition/filter is met ") tells ConfiForms WHEN the IFTTT needs to be executed

 

What I was talking about are these 2 options

With give IFTTTs you can setup whatever request you need to make.

Thank you Alex,

I will look into this with a developer in my organization. 

@Alex Medved _ConfiForms_ 

Can Applink Post users to the Jira watchers system field as an Array?

Any API can be called through the applink service

Take a look at the API that removes the watcher from a Jira issue itself https://docs.atlassian.com/software/jira/docs/api/REST/8.5.9/#api/2/issue-removeWatcher

It looks like it doe snot support the list of watchers

Here is your answer

Suggest an answer

Log in or Sign up to answer
TAGS

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