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
Peruma.C
The best for that is to use JMCF's Transition Date/Time field. No scripting required.
We are not using JMCF plugin instead of this can u give the input
Thanks and Regards
Peruma.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
then
New_field = current_date
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So you are trying to add a Scriptrunner Script Field? Do you want to share a few screenshots of your field and your code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.