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: 

Numeric custom field validation

ADM Amar Msaid
Contributor
August 5, 2023

Hi everyone,

How to prevent a user to create issue when a numeric custom field value is equal to zero (the field is configured as required but the user enter 0).

i use jira work management.

Thank you

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Ste Wright
Community Champion
August 5, 2023

Hi @ADM Amar Msaid 

I take it that as you state "Jira Work Management", this is Cloud not Server?

Field-level validation in this manner is not possible natively, I would either...

  • Use Automation to clear the field if it's "0" - and perhaps send the user an email to confirm why their value was removed. For example, the rule might be...
    • Trigger: Field Value Changed
      • Field = Number Field
    • Condition: Issue Fields Condition
      • Field = Number Field
      • Condition = equals
      • Value = 0
    • Action: Edit Issue
      • Field = Number Field
        • Value = <leave blank>
    • Action: Send Email
      • To = Initiator
      • Subject/Content = detail why value was removed
  • Look for an App which can do this on the Marketplace; for example...

Let us know if this helps!

Ste

ADM Amar Msaid
Contributor
August 5, 2023

Thank you.

Like Ste Wright likes this
TAGS
AUG Leaders

Atlassian Community Events