Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove Watchers or add new ones using ConfiForms?

Omar Contreras June 2, 2020

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

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
June 3, 2020

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

Omar Contreras June 4, 2020

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. 

Alex Medved _ConfiForms_
Community Champion
June 4, 2020

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

Omar Contreras June 4, 2020

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?

Alex Medved _ConfiForms_
Community Champion
June 4, 2020

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.

Omar Contreras June 5, 2020

Thank you Alex,

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

Brian Karst
Contributor
October 28, 2020

@Alex Medved _ConfiForms_ 

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

Alex Medved _ConfiForms_
Community Champion
October 28, 2020

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