Mandatory fields

Hi,

I tried to establish two mandatory fields for an issue.

I used the workflow jetbrains-youtrack-mandatoryField and added a rule "Don't allow to submit issue without Assignee" which is pretty much the same as the rule "Don't allow to submit issue without Due Date set" I only exchanged "Due Date" with "Assignee" and changed the message.

The rule works find BUT both rules do not work at the same time. When I create a new issue I get the message "You must set the due date". If I try to set the due date, I get the other message "Please assign issue" and vice versa.

It is not possible to set the required fields. Alone every rule works fine.

A bug? Or do I have to set up this in another way?

Best Regards,

Alex
4 comments
Comment actions Permalink
Hello Alexander,

Pardon for the delay.
Your scenario should work correctly.
Did you create a separated rule in workflow for this task? Did you also try two other workarounds:
1. to create a new workflow for this rule and to attach it to your project
2. to make one rule for these two tasks, just add
Assignee.required("You must set the Assignee");
prettyPrint(); to "when" block ?

Thank you.
0
Comment actions Permalink
Hi Andrey,

yes, I tried both. Created a new rule for the same workflow and created a
new workflow with the new rule. Both did not work,

I have to try the second option now.

Best Regards,

Alex
0
Comment actions Permalink
Hi Andrey,

2nd option doesn't work either. I added the second rule to the
mandatory-workflow but when I create an issue everytime I put in the due
date I am forced to input the assignee and vice versa. It is not possible
to fill in both mandatory fields.

Best Regards,

Alex
0
Comment actions Permalink
+1
same behavior on YouTrack 4.2.1 (build #5969 [20-Mar-2013 16:59] )
0

Please sign in to leave a comment.