Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Suggest an answer

Log in or Sign up to answer

You can using Script Runner to complete it.

Using 'Behaviour'.

0 votes
Bhushan Nagaraj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 07, 2017 • edited Sep 08, 2017

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.

Bhushan Nagaraj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 08, 2017

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.

TAGS
AUG Leaders

Atlassian Community Events