You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.