Forums

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

JSD Hide UI button Share with customer conditional

Deleted user October 11, 2018

Hi all!

I thought that this should be pretty simple using Script Fragments, but I haven't found the web element even with the Fragment Locator enabled...

Also I haven't found an answer in the community neither in the web.

I'm trying to hide "Share with customer" button for every user except assignee. Any ideas?

3 answers

1 accepted

0 votes
Answer accepted
Deleted user November 6, 2018

I was referenced here by Adaptavist itself:

https://scriptrunner.adaptavist.com/latest/jira/fragments/WebResource.html

Haven't done yet

0 votes
Tomáš Vrabec
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.
July 25, 2022

From 2022: Currently, there is fragment function: Hide UI element and over there, you can search for share button in servicedesk and it works. 

If you need any condition, for example per project, check the docs here https://docs.adaptavist.com/sr4js/latest/features/script-fragments/built-in-fragments/hide-ui-element-built-in-script

or use 

jiraHelper.project?.key in ["XYZ", "ABC"]
0 votes
Glenn Morrow November 5, 2018

Did you ever get anything on this? I am looking for a similar thing - I want the "Share with customer" button on comments hidden in 1 JSD project but not others.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events