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

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 :) 

Suggest an answer

Log in or Sign up to answer