Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

script for Jira cloud (JMWE)

Hari Shankar May 12, 2021

Hi,

I need small help that I'm trying to implement a scripted condition on a transition but I couldn't achieve.
When Reporter = Assignee the transition button should not appear for this I need a small script for JIRA CLOUD.

I have tried below script but i'm getting errors

def ca=ComponentAccessor
def gm=ca.getGroupManager()
issue.getReporter() != issue.get("assignee")

can you please check and support me to run this rule

1 comment

Comment

Log in or Sign up to comment
David Fischer
Community Champion
May 12, 2021

Hi @Hari Shankar 

on the Cloud, you don't use Groovy but Atlassian's Jira Expressions language. For your requirement, you can create a Build-your-own Condition with this code:

issue.assignee != issue.reporter
Hari Shankar May 13, 2021

Thanks @David Fischer 

It worked!

TAGS
AUG Leaders

Atlassian Community Events