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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,165
Community Members
 
Community Events
184
Community Groups

I need a workflow validator to check if the Jira issue has at-least one pull request

I need a workflow validator to check if the Jira issue has at at-least one pull request

I see we have a JQL search workflow condition to check the Jira issue has at least one pull request but I need a validator, how do I achieve it?

JQL Query : status != Closed AND development[pullrequests].all > 0

3 answers

Hi, @Kiranped .

May I suggest the usage of the JMWE Scripted (Groovy) Validator and verify that there is a value returned when you use this Groovy script?

issue.get("Development").pullrequest

 From there, you can expand the requirement where needed.

Hello @Ahmad Danial Mohammad {Appfire} 

Do you know if it works for Jira Cloud?

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 15, 2021

Hi @Kiranped  - not sure of the exact syntax for the pull requests, but since it looks like you are using JMWE, you might take a look at this previous post for something similar.

https://community.atlassian.com/t5/Jira-questions/Jira-Workflow-condition-or-validator-on-development-panel/qaq-p/1086560

0 votes
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 14, 2021

@Kiranped 

You will need a plugin.

Do you have ScriptRunner for Jira by any chance?

Best,

Fadoua

Yes, I have

Let me try and update. Thanks in advance :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events