Forums

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

How to get workflow status name in Scriptrunner Fragments Condition

Andreas Vetter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2021

Hi there,

I want to display a Web Panel with Scriptrunner - Fragments - Show a web panel

for a specific project and a specific workflow step.

So I have in the Condition:

(jiraHelper.project.key in ["PROJECT"]) && (getActionName() == "In Progress")

But getActionName() does not seem to work.

Is there a way to get to the workflow step name from this place?

 

 

1 answer

2 votes
Lih Yao Tiong
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2021

Hi @Andreas Vetter

It seems like you wish to display fragment in specific issue status

To get the status name of the issue, here's the condition:

issue.status?.name == 'To Do' //if the issue in "To do" status

May I know is this the solution that you're looking for? 

Suggest an answer

Log in or Sign up to answer