Forums

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

Hi, I have a requirement for validating a custom field. But it isnt recognizing custom field.

Shriya Rao September 24, 2018

I don't have an option to install paid plug ins. So here is what I tried.

The Boolean expression {Priority} == "High" must evaluate to true .

The Boolean expression {Defect Root Cause} == "None" must evaluate to false .

Out of these two, the first validator works where as the defect root cause doesn't. Defect Root cause is a single select custom field. Is there any other way ( I cant use any paid plugins )

My requirement is that the user will be able to move to next status only if its value is other than None. Please let me know if there is any solution.

 

 

2 answers

0 votes
Daniel Deng
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2018

Oops, sorry, ignore my answer if you do not have Jira Worflow Toolbox

Hi Shriya

Not sure how you added the validator.  Here is a process works from my side

1. Open and edit your workflow

2. Click the transaction you want to add validator and click add validator

3. Select "Boolean validator with math, date-time or text-string terms"

4. Found your customer filed "Defect Root Cause" in the "Text String Terms" and insert in the text editor, it should be something like %{00011} != "None", then add it, where 00011 is your custom field ID

Shriya Rao September 24, 2018

Hi Daniel,

Thank you for the solution. This makes sense. Will try this and get back.

Shriya Rao September 24, 2018

As you said, I could not try the "Boolean validator with math, date-time or text-string terms" as it isn't present. But I had an option to add it as 'Universal validator' which is also a Boolean expression. Added as %{10603} != "None", but it gave parsing issue and wasn't successful when tested. 10603 is my custom field ID.

So I tried as The Boolean expression "%{10603}" != "None" must evaluate to true

But it didn't work.

Daniel Deng
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2018

Hi Shriya

Different plugins behave in different ways. Are you using the plugin "Workflow Enhancer for Jira"? Hover your mouse on the "'Universal validator", you will see which plugin is being used.

If it is "Workflow Enhancer for Jira", please use {Defect Root Cause} = "None"validator.png

Shriya Rao September 26, 2018

Yes the same plugin. I had tried this. It didn't work. The condition is never validated. So I had to try with regex validator.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2018

Jira doesn't do this natively, what plugin are you using to provide this functionality?

Shriya Rao September 24, 2018

Hi Nic, thanks for quick response. I could solve the issue for now for some extent with below regex validator:

Regex Validator

  • Custom Field: Defect Root Cause
  • Regex: .*\b(?:Enhancement|Duplicate|Build Issue|Changed Requirement|Design Flaw|Development Error|Base App Issue|Functions as designed|Inaccurate test scripts|Incomplete Test or Cutover Plan|Insufficient Testing|Intermittent|Sporadic issue|Lack of data in development|Missed Requirements|Not release related|Not reproducible|User error|Cause of defect|Software error (Adapter)|Software error (Polling)|Software error (I&T)|Software error (AT)|Software error (Product)|Test Data error|Test Case error|Test Operation error|Others|iOS11Upgrade|Swift4Upgrade|Error in base app|Bad test data)\b.*
  • Error Message: Please enter value other than 'None' for Defect Root Cause!

Let me know if you have a better solution. I cant buy any plugins for now.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events