Forums

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

Post Script to set the value and group filter of user picker (single)

James Muir
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2020

Hello,

I am trying to set the value of a custom approval field for a user picker (single) using a Post Script and the Cprime Power Script plugin. My script currently looks like this 

customfield_10077 = "Jane Doe"

but does not set the value of the field during the transition in the workflow so I was wondering if it was possible to do this using the tools that I am. 

Additionally, I was wondering if it was possible to assign the group filter for the user picker (single) custom field programmatically using the set same tools?

 

Thank you in advance.

 

 

 

1 answer

0 votes
Alexey Matveev
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.
July 22, 2020

Hello @James Muir ,

Try to write like this:

customfield_10077 =getUserByFullName("Jane Doe");

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events