Give the value of Linked Issue in screen to validate

I want to validate on Workflow validations that this Fields has a value, this is a jira field, so I cannot refer to it as a custom field.getId.png

2 answers

Hey Daniel,

Any of the add-ons below should allow you to add a post-function that validates if fields (both system and custom) have a value.

User ScriptRunner for JIRA to add a custom script validator. The script looks for all Linked Issues. If there are no linked issues, validation fails. If linked issues are found, it looks for status and performs the validation required to check for particular status values.

This question has been answered here. https://community.atlassian.com/t5/JIRA-questions/Validator-script-to-check-status-of-all-linked-issues-before/qaq-p/427966

ScriptRunner add-on link: https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/server/overview

Thank you

Bhushan

None of those Plugins validate that particular field, also I want to make it required only when resolution is 'Duplicate'. Thanks.

Thanks Daniel. I have updated my response based on your requirement of having a specific resolution or status.

Thanks for your response, but I'm looking for something that checks the value on real time, I mean in a Transition screen, that script you mentioned checks the linked issues when they already exists on the Issue, I just need to check that the 'Issue linked' field has a value on the screen.

You can using Script Runner to complete it.

Using 'Behaviour'.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

451 views 6 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you