I have trouble with post function,
have added "Set field value" and then wanted to auto add watchers (three of them)
after creating issue it is adding only one randomly not all of them
any ideas what i am doing wrong
to add the value to the Watchers field, you just need to check the "Add value(s) to the field" option, which you have done.
However, your problem comes from the fact that, on Jira Cloud, post-functions run asynchronously, and therefore simultaneously. And because of the lack of transactional integrity in Jira Cloud, the three post-functions end up overwriting what the other post-functions are doing at the same time.
But in your case, since you're adding three users with the same conditional execution, you don't need three post-functions. Just use one post-function and provide all three accountIds separated by a comma, as shown in the "Expected value" help tab.
The post-functions you are using are not adding watchers, they are setting the watcher each time. Assuming they run sequentially, the second one will replace the value set in the first one, and then the the third one will again repace the value set in the second one.
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