Scriptrunner fragments hide workflow button

Jakub Cieplinski
Contributor
January 27, 2022

I would like to hide, using css/js or  "Hide system or plugin UI element" functionality of scriptrunner a particular workflow button. 

 

How would I go about doing that? I can't find any documentation of "module keys or web items" if I wanted to use "Hide system or plugin UI element", nor can I fugire out which context to select if I try to do it with css and "Install web resource" functionality

1 answer

1 accepted

1 vote
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2022

Hi @Jakub Cieplinski ,

if you wnat to hide a particular transition buttonyou should use workflow condition that hide/display buttons based on condition.

More information about conditions available at the following URL  https://confluence.atlassian.com/adminjiraserver/advanced-workflow-configuration-938847443.html

Hope this helps,

Fabio

Nic Brough -Adaptavist-
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.
January 27, 2022

Yep, exactly that - conditions do what you need, you don't need Scriptrunner to do it.

Although, you might consider writing the condition with Scriptrunner ;-)

Much as I love SR, don't use it for things Jira can already do - always use native functionality first!

Jakub Cieplinski
Contributor
January 27, 2022

I've managed to do it with fragments :)

I understand we could do it with conditions but we trigger such transition with another script and from I've been told transition options .skipConditions() sometimes manages to fail somehow.

Roland Gersei February 6, 2023

Hi @Jakub Cieplinski !

Can you tell me some instruction about how you managed it with fragments?

I'm trying to do the same.

Thanks,
Roland

Juan Felipe Garcia Carreño February 21, 2023

Hey @Jakub Cieplinski !

 

We are trying to do exactly the same and hide transitions. The condition that does it doesn't suit our needs because we don't need the transition to be hidden in all the cases. Could you guide us on how you made this work?

Suggest an answer

Log in or Sign up to answer