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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Set Log Work Mandatory based on a select list field


I m using the script runner and I want to make log work mandatory if select list is not empty. 

Any suggestions please.

1 answer

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 15, 2021 • edited


For your requirement, you should look into ScriptRunner's Behaviours. 

To start, you should look at the Behaviours documentation at] along with the Behaviours tutorial at

Below is an example Server-Side Behaviour code which shows how you can make the Log work field(s) mandatory:-

def required = getFieldById(fieldChanged)
def requiredValue = required.value.toString()

def logwork = getFieldById("log-work-time-logged")
logwork.required = false

if(requiredValue == "Yes") {
  logwork.required = true

Below is a print screen of the Behaviour configuration:-



Below is a print screen of how the Behaviour works:-

behaviour_sample.pngWhen the issue is being created, if the option selected in the Required list is Yes, the Time Spent field becomes mandatory else it is not.

Hope this helps to solve your question :)

Hey, @Ram Kumar Aravindakshan _Adaptavist_! Do you know what is the name to interact with field "Work Description"? ("log-work-...?")

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events