The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Make a custom field mandatory if assignee belongs to a user group

Mohammad Abu Tame
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!
August 13, 2021

I have a custom field that want to be mandatory (on ticket creation) if the assignee user is member of a user group.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
August 15, 2021

Hi @Mohammad Abu Tame  you will definitely need some Marketplace App. I use ScriptRunner and Validator written as Jira expression can look like:

issue.assignee !=null && issue.assignee.groups.includes("site-admins") && issue.comments.length>0
  1. it checks that assignee is not null
  2. and assignee's groups contains group site-admins
  3. and issue has at least one comment (you didn't specify the type of the custom field)

I hope it'll help :)