Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Simple script validator - if multi select field has a value and a select field cannot be empty

How to copy my customize issue type to another next-gen project

ikeli
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 31, 2019

Hi,

I add one new issue type in project setting,and I want use that in another project,how can I copy that new issue type to new project?

2 answers

1 vote
Thanos Batagiannis [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 Champions.
January 23, 2017

Hi Ganesh,

if (cfValues['FieldMS']*.value == ["Yes"] && ! cfValues['FieldSS']?.value)
    return false

return true

So the above validator means:

If the FieldMS value IS Yes then if the FieldSS has no value selected then fail. In any other case, for example if FieldMS CONTAINS Yes and Maybe values and the FieldSS has no value selected then pass. 

regards, Thanos

0 votes
Peter Bengov
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 Champions.
January 18, 2017

Hi Ganesh, 

Is FieldMS mandatory for this step? Maybe a check for a null value is in order. 

Also, try to use something like !(['Yes'].contains(cfValues['FieldMS'].value))

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events