Hi, Team
How to read workflow status name "To-Do" in Jira using groovy (ScriptRunner), then convert into string and compare the value?
Hi @Vishal
Thanks for your reply, sorry for the missing details earlier. I am trying to use this in a behaviour script. Could you please let me know what changes I would need to make to be able to read status of the current issue? I have already tried the following but couldn't get it to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this instead & see if it works
if (value >=20000 && underlyingIssue.getStatus().name == "Status Name")
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.
@Arunajyothi Samala Welcome, Please accept the answer so that its useful for other community members.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vishal Yes, I did. And thank you! can you please help me with the below question as well.
I have three conditions for my scriptrunner behaviour script.
1. If value >= 20,000(For this condition , the issue is not yet created, this condition is for create screen)
2. If value >= 20000 && underlyingIssue.getStatus().name == "To-Do")
3 if value < 20000
I need to show fields and make them required when shown
I need to hide them and make not required when they are not shown
I need an if, else if, else statement here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vishal
I have three conditions for my scriptrunner behaviour script.
1. If value >= 20,000(For this condition , the issue is not yet created, this condition is for create screen)
2. If value >= 20000 && underlyingIssue.getStatus().name == "To-Do")
3 if value < 20000
I need to show fields and make them required when shown
I need to hide them and make not required when they are not shown
I need an if, else if, else statement here.
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.