The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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?