You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi guys,
I have 3 field :
1. Vendor (A) : Text Field (multi-line) 12038
2. Developer (B) : User Picker (multiple users) 12443
3. SQA (C) : User Picker (multiple users) 12444
fields will be filled in Parent workflow,
I will make validation in sub-task used Linked Issues Validator (JMWE app)
Status Movement from open to in progress if :
A Empty + B Empty +C Empty= stop
A Empty + B filled +C Filled = move
A filled + B filled +C Filled = move
A filled + B Empty +C Empty = move
but I try my script and the result not same with my needs
(linkedIssue.customfield_12038 == null && linkedIssue.customfield_12443.length == 0 && linkedIssue.customfield_12444.length == 0)
||
(linkedIssue.customfield_12038 == null && linkedIssue.customfield_12443.length > 0 && linkedIssue.customfield_12444.length > 0)
||
(linkedIssue.customfield_12038 != null && linkedIssue.customfield_12443.length > 0 && linkedIssue.customfield_12444.length > 0)
||
(linkedIssue.customfield_12038 != null && linkedIssue.customfield_12443.length == 0 && linkedIssue.customfield_12444.length == 0)
the result :
A Empty + B Empty +C Empty= stop
A Empty + B filled +C Filled = move
A filled + B filled +C Filled = move
A filled + B Empty +C Empty = stop
please help me for corrections related to what i have made
Regards,
Tyas
Hi @David Fischer _Innovalog_ ,
After used your script, result is :
A Empty + B Empty +C Empty= move
A Empty + B filled +C Filled = move
A filled + B filled +C Filled = move
A filled + B Empty +C Empty = move
Are there any settings I missed?
Apparently, Jira expressions return "" for an empty multi-line text field (instead of null). Therefore, the script should be:
(!linkedIssue.customfield_12038 && linkedIssue.customfield_12443 != null && linkedIssue.customfield_12444 != null)
||
(!!linkedIssue.customfield_12038 && linkedIssue.customfield_12443 != null && linkedIssue.customfield_12444 != null)
||
(!!linkedIssue.customfield_12038 && linkedIssue.customfield_12443 == null && linkedIssue.customfield_12444 == null)
Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events