I have two number custom fields in my project lets suppose
num custom field 1
num custom field 2
I want to resistrict custom field 2
like if I enter any number in custom field 1 so when someone try to enter the number in custom field 2 it is not greater than the double of the custom field 1 value.
for example if I enter 5 in custom field 1 then in custom field 2 we cant able to enter the number greater than 10..either its less than 10 or 10.
how can I achive this?
I am using jira cloud.
Hi @Umar Maroof ,
In case this is still needed:
you could create a rule that is triggered whenever customfield2 is being entered a value (trigger = field value changed).
In this rule, you put a condition (issue field condition) that only proceeds if customfield1 is greater than customfield2.
In the next step you put a "Then:" (edit issue fields) and have it delete the value of customfield2 that was just entered.
That should do the trick ;)
Best regards,
Justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Umar Maroof
You can install ScriptRunner and try.
Automation rules can be used only for checking after the transaction was completed like when the ticket was created.
Or, you can use 'Validators' in the workflow for the transition link connecting the 'grey' circle and the first status of the workflow ('Create' transition).
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not an answer @Vamsi Kandala if the user explicitly said "I do not have Script Runner" . . . because I have the same issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.