Forums

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

Conditional Custom Field to Require Logging Time Worked

Alex Cullor
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!
October 20, 2021

Hello, I have a workflow question that has stumped me. We do not track time on every one of our tickets, but we do track time on tickets that are billable to our customers. I am trying to create a way to require time to be logged for work done when a custom radio button field has been toggled to "Billable" before the ticket can be moved into "In Review" status. Any insight on how this can get done?

1 answer

0 votes
Avinash Bhagawati _Appfire_
Community Champion
October 22, 2021

Hi @Alex Cullor ,

With help of Field Required validator from JMWE app you will be able to achieve you requirement. 

  • Add Field Required validator the transition which moves the issue to In Review
  • Select Field as Time Spent
  • Add the error message.
  • Add the below expression in validator scope and change the custom field id for radio button field as per your instance.
    !!issue.customfield_10357 && issue.customfield_10357.value == "Billable"
  • Please find below screenshot for your reference.
    cm01.png

 

Thanks,
Avinash

Alex Cullor
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!
November 11, 2021

I have been testing this and have come to an issue after adding this workflow change. Trying to transition this ticket to 'In Review' does give this error now. But if I log work for this ticket and try to transition it again, I still get this error and cannot move this ticket to review now that I have logged time.

Avinash Bhagawati _Appfire_
Community Champion
November 12, 2021

Hi @Alex Cullor ,

Can you please make sure that you transition screen for In Review and you have log work field in that transition screen. Please find below screenshot for your reference.

2021-11-12_18-02-08.png

Thanks,
Avinash

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