I am attempting to add a validator to a workflow.
I have tried a couple different scripts but wasnt sure if how to complete.
Would something as simple as this code work?
Or do i need something more complex.
I have two fields
Code review assignee - customfield_13300
Code review complete - customfield_14130
If code review assignee has a value i want to require code review complete to equal yes
I tried this code but i am unfamiliar with scriptrunner
and( issue.fields['customfield_13300'].hasvalue, issue.fields['customfield_14130'].value == "yes" )<br><br><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-22 at 11.09.41 AM.png" style="width: 796px;"><img src="https://us.v-cdn.net/6038660/uploads/images/313872i111BFF4AB7804D99/Screenshot%202024-03-22%20at%2011.09.41%20AM.png" role="button" title="Screenshot 2024-03-22 at 11.09.41 AM.png" alt="Screenshot 2024-03-22 at 11.09.41 AM.png"></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-22 at 11.09.35 AM.png" style="width: 999px;"><img src="https://us.v-cdn.net/6038660/uploads/images/313871i226A22A4721E03DD/Screenshot%202024-03-22%20at%2011.09.35%20AM.png" role="button" title="Screenshot 2024-03-22 at 11.09.35 AM.png" alt="Screenshot 2024-03-22 at 11.09.35 AM.png"></span>