hello everyone
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
Hi,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Change to a post function that adds instead of sets the watcher.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
there is no add watcher in JMWE. Can you help us to build-our-own (scripted) Post-function (JMWE app)? I don't know how to write nunjucks script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.