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
Community Members
Community Events
Community Groups

How to get the Status field value

Hi Team,

Right Now I am using Jira DC v8.20.21. I am developing some functionality using groovy script. Based on the status I need to give some activity.

But I don't know how to get the status field value.

I tried to get the status value following script but it is not working

 def sc = issue.getStatus().getName()

Kindly anyone help me to get the current status of the story. 


Thanks and Regards


2 answers

0 votes

The best for that is to use JMCF's Transition Date/Time field. No scripting required. 

Hi David Fischer _Appfire_

We are not using JMCF plugin instead of this can u give the input

Thanks and Regards


0 votes
Alex Koxaras Community Leader Aug 22, 2022

Hi @Peruma Chinnasamy 

How exactly are you trying to get this value? What app are you using and where do you run your code? In a workflow? On scriptrunner console? On JMWE groovy editor?


Hi Alex Koxaras

By Groovy script

I am going to adding script filed for story screen that field should update the value 

if status = Deployed


New_field = current_date 

Alex Koxaras Community Leader Aug 22, 2022

So you are trying to add a Scriptrunner Script Field? Do you want to share a few screenshots of your field and your code?

Hi Alex Koxaras


Yes I am trying to add the Scriptrunner Script Field


Suggest an answer

Log in or Sign up to answer

Atlassian Community Events