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: 

Need a way to restrict something

Hitesh
Contributor
May 2, 2023

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Trudy P Claspill
Community Champion
May 2, 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   
Hitesh
Contributor
May 3, 2023

Hello @Trudy P 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 P Claspill
Community Champion
May 3, 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.

Hitesh
Contributor
May 3, 2023

@Trudy P Claspill  No Problem. Thanks! anyway

2 votes
Daniel Ebers
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.
May 2, 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

Hitesh
Contributor
May 3, 2023

Hey @Daniel Ebers 

 

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

 

Thanks.

Hitesh
Contributor
May 3, 2023

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