Forums

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

Why I can't add a condition to the Create Issue transition

Elena Kotsinova August 14, 2020

Hi,

I want to add a condition to Create Issue transition in my workflow.

This transition is the only one that doesn't have possibility to add conditions or triggers.

I did a lot of internet search and reading, but the only statement I found is that you can't add a condition to the create transition.

Can someone help me understand why is this and how I can still add some condition when user creates an issue.

My particular case is that I want to add required fields only for issue type = Bug.

Is there any other possibility to do this except to create and maintain 2 different workflows and duplicate any work on them. 

5 answers

2 accepted

1 vote
Answer accepted
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.
August 14, 2020

It's because there is nothing there when you use the transition.

A condition is something that decide whether to present an option to a user, it needs to be able to look at data in order to make the decision about whether a transition should be available to the current user.  When you are using "create", there is nothing for a condition to look at.  Without an issue, there's nothing it can work with.

Even if you could put a condition on a create transition, all it would be able to do is remove the "create issue" links.  It would be functionally useless.

There is some control over create though, you do it in permissions, by allowing people to create issues in the project (or not)

What you are trying to do is absolutely nothing to do with conditions.

You need to look at having a different "field configurations" - one for "bug" and one for all the other issue types in the project.  If you separate those, you'll be able to set mandatory fields for bug, while leaving them optional for the other issue types.

mims-raymund
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!
November 16, 2021

what if I want to set a condition based on the issue type and assign it to different users based on that?

eg.
if issue type is either Change request or New Feature -> assign it to User A, Otherwise assign all other tickets to User B

Thanks.

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.
November 17, 2021

That's not a "condition", please see the original answer for what a condition does.

Like # people like this
Chris Morse
Contributor
March 30, 2022

I disagree, it would be useful if certain issue types could be restricted to users with specific roles. For users that fall outside of those roles the issue issue type would not even be present as an option. This would be a condition that is checked when determining what issue types are allowed to be chosen. 

Like # people like this
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.
March 30, 2022

That's not a "condition", that's something that would have to be done before the workflow starts.

Like # people like this
1 vote
Answer accepted
Thorsten Letschert _Decadis AG_
Atlassian Partner
August 14, 2020

Hi @Elena Kotsinova ,

when you want to make a field required in general for a specific issue type, I'd go for updating the corresponding field configuration and make it required there - see https://confluence.atlassian.com/adminjiraserver0810/specifying-field-behavior-1014673967.html

Cheers
Thorsten

2 votes
Andrew Laden
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 14, 2020

You can use a Validator on the create transition, and use a fields required validator (A validator supplied by JSU) or similar one.

So assuming your Bug issue type has its own workflow, that should do what you want. You will be unable to create the issue unless those fields are filled in.

1 vote
Elena Kotsinova August 14, 2020

Thank you all for pointing me the right direction.

I did the following:

1. Created a new  Field Configuration

2. Marked everything what I need to be required.

3. Associated this configuration with issue types through the field configuration scheme

4. Added this scheme to a project through  Project settings > Fields > Actions > Use different scheme.

0 votes
Denise_Wuethrich_beecom_products
Contributor
August 14, 2020

Hi, @Elena Kotsinova You may read more about JSU's fields required validator here: https://beecom-products.atlassian.net/wiki/spaces/JSU/pages/25680558/Fields+Required+Validator

 

Should you need further assistance, don't hesitate to create a ticket here: https://beecom-products.atlassian.net/servicedesk/customer/portal/3/user/login?destination=portal%2F3

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events