Hi Team,
I am new to Scriptrunner Fragments and I want to hide the Create button present on Top Navigation bar on Dashboard only.
I am using Hide system and plugin UI elements under Scriptrunner Fragments, and in Hide What: I am able to find the location of this web item: com.atlassian.jira.jira-header-plugin:create-issue
When passing the Condition as:
(jiraHelper.project?.key != "<issue-key>")
I am able to see that Create button on Top Navigation Bar is hidden, but it is also hidden on all pages under that specific project.
My requirement is, I just want to hide the Create button on a particular Dashboard Page ID i.e. https://<jira-instance>.atlassian.net/secure/Dashboard.jspa?selectPageID=XXXXX
Please guide me on how to write the correct condition as per the above requirement in Scriptrunner Fragment.
Thanks.