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

To create issue just if it's not under specific issue type

Hadassa
Contributor
August 27, 2024

Hi :)

I need to check when a new issue is creating,
if the parent of this issue equals to Epic:

if it is- the creation will be cancelled
and if it is not equals, just then, the new issue will created

I did it with validator on the creating transition that-
checking if the parent issue, is not equals to Epic,
and if it is not- so the issue will created

it's  working well, but not with mine massage error..

waiting to your answer :)

validator.PNG

2 answers

2 accepted

1 vote
Answer accepted
Marc - Devoteam
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.
August 27, 2024

Hi @Hadassa 

There is no option to check any validations before creating an issue in Jira.

There is nothing to validate on if there is no issue created and the parent - child relation is there.

On issue creation you can only validate if certain fields have fields filled with data before creation.

Hadassa
Contributor
August 27, 2024

thanks' @Marc - Devoteam for your answer,

I'm talking about parent - child relation,

how can I make parent - child relation on mine issues-

or, how can I know if there is already? 

Marc - Devoteam
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.
August 27, 2024

Hi @Hadassa 

You can't. 

On issue creation there is no way to validate on existing other Jira information, as the issue doesn't exist yet.

Hadassa
Contributor
August 27, 2024

ok... got it @Marc - Devoteam 

so what about 'Relates issue validator'

like what I trayed to do?

Marc - Devoteam
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.
August 27, 2024

Hi @Hadassa 

As I explained, this can't be done in any way.

It's the same as, example;

I only want to park my car if the garage has cameras on each parking space, if I'm in front of the gate how can I validate?

I would first need to be in the garage, to validate.

Hadassa
Contributor
August 27, 2024

Hi @Marc - Devoteam 

so what is it for? this validator?

Marc - Devoteam
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.
August 27, 2024

HI @Hadassa 

This can be used on other transitions in a workflow, but not on create

If an issue is not in the system, it can't have a link to another issues, because it doesn't exist yet.

This validator can be used on issues that exist and might have a link to another issue.

You can only validate on issue creation if fields are provided before creation.

If an issue doesn't exist in the system, you can't validate it with existing data.

Another example;

If I bake a cake and you want to bake a cake to see if its more delicious then mine, you would need to create to first

Hadassa
Contributor
August 27, 2024

Ok, got it now!

This validator not intended for the creation transition,

That's what I needed to understand,

Thank you @Marc - Devoteam that was helpfully  


By the way-
your examples were great :)

0 votes
Answer accepted
Jerrold - Empyra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 27, 2024

HI @Hadassa 

Can you please share the error message you are getting instead of the given error message and also can you check if this transition has any other validators similar to this. 

Thank  you.

Hadassa
Contributor
August 27, 2024

thank you, Jerrold for your answer

I just try it now,

and it's not working at all

and the transition doesn't have any validator similar like this .

 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events