Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to remove a user in multipicker user after clicking a transition?

Christian Michael Arizala August 31, 2014

Hi,

I want to remove a user in multiuser picker after clicking remove me transition. How to do a script in sil? Please help. Thanks.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Alexandru_Iacob
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2014

Hi Christian,

Just add the following script as a SIL post-function to the transition:

customfield_xxxxx = arrayDeleteElement(customfield_xxxxx, "username");

, where xxxxx is the multi user picker custom field id and "username" is the username of the user you want to remove.

Kind Regards,

Alex

Christian Michael Arizala September 1, 2014

Hi,

Thanks Alexandru. I have a question how can I force user to comment when I click and do a certain action. For example I have a dropdown wherein there are decisions in there and when I choose decline the user will be force to comment on why they decline. Please help. Thanks

Alexandru_Iacob
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 1, 2014

You should take a look at our Blitz Actions plugin: http://confluence.kepler-rominfo.com/display/KBA/Home.

It lets you define a screen containing your decisions dropdown and a text area for entering the comment:

http://confluence.kepler-rominfo.com/display/KBA/The+Screen+Script

Then when pressing the submit button, will execute the action script, which can remove the user from the multi user picker custom field, as welll as adding the comment:

http://confluence.kepler-rominfo.com/display/KBA/The+Action+Script

Eg.: addComment(key, currentUser(), BA_getSingleValue(argv, "Comment"));

, where "Comment" is the label for the text area input

Regards,

Alex

FlorinM
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 1, 2014

Check this out: http://confluence.kepler-rominfo.com/display/SIL/getCommentIt was specifically designed for this type of validation.

TAGS
AUG Leaders

Atlassian Community Events