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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,559,893
Community Members
 
Community Events
185
Community Groups

Need a way to restrict something

Edited

Hello,

User cannot create the ticket if the follow conditions are not met.

I have these 2 fields called FieldX (Multi-line) and FieldY(single-line). 

- FieldX is not empty and field Y is not empty

- These both can be empty but they both cannot have value. 

- But either one can.

 

Please let me know how I can achieve this condition.

 

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 02, 2023

Hello @Hitesh 

Can you please try again to explain the validation requirements? The first two contradict each other

"FieldX is not empty and FieldY is not empty" = neither field can be empty so both must contain data

"These both can be empty" - This is a direct contradiction of the first statement.

Perhaps you can provide a table that explains the conditions?

Field X  Field Y  Passes validation? 
is empty  is empty   
is empty  is not empty   
is not empty  is empty   
is not empty  is not empty   

Hello @Trudy Claspill 

 

If both are empty =Pass (Both can be empty)

1 Empty and 1 not= Pass (1 field can be empty)

Both not empty= Fial (1Field should ahve value)

 

Thanks!

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 03, 2023

When I last worked with Jira Data Center (v7.x) some years ago I remember being able to use logical operators in some part of the advanced workflow configuration. Looking through the documentation it appears that is available only for Conditions, not for Validators.

https://confluence.atlassian.com/adminjiraserver/advanced-workflow-configuration-938847443.html#Advancedworkflowconfiguration-conditions

You said you need this during issue creation, but Conditions can't be added to the issue creation transition, so you will have to go with Validators.

I'll defer to @Daniel Ebers to provide you with additional guidance since I don't have access to a Jira Server/DC instance where I could work out the details.

@Trudy Claspill  No Problem. Thanks! anyway

2 votes
Daniel Ebers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 02, 2023

Hi @Hitesh

this is normally a requirement where Apps come into the play.
From Marketplace (https://marketplace.atlassian.com/) you can find ones where such complex logic for conditions actually can be made.

What we used in the past, kindly evaluate if you can address your needs with them, would be:

There surely are others, please check.

Cheers,
Daniel

Hey @Daniel Ebers 

 

I have all the above listed app.. How do i achive this.. can you walk me through the process.

 

Thanks.

Even automation for Jira works for me.. just need to work it out :D 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events