I have a condition to hide "Created Linked issue" if issue is:
- project of key is "LO"
- type of issue is "Epic"
- status of issue is "Closed"
So I write the following query:
jiraHelper.project?.key != "LO" &&
issue?.issueType?.name != 'Epic' &&
issue?.getStatus()?.getName() != 'Closed'
and the above query hides "Created Linked issue" in issue types such as "New Feature", "Epic":
I've tried to change the query:
jiraHelper.project?.key == "LO" &&
issue?.issueType?.name == 'Epic' &&
issue?.getStatus()?.getName() != 'Closed'
However, it again hides "Created Linked issue" in issue types such as "New Feature", "Epic".
How can I hide "Created Linked issue" if issue is:
- project of key is "LO"
- type of issue is "Epic"
- status of issue is "Closed"
?
Hello @zaharovvv_suek_ru
!(jiraHelper.project?.key == "LO" &&
issue?.issueType?.name == 'Epic' &&
issue?.getStatus()?.getName() == 'Closed')
Above code means *NOT* of
- project of key is "LO"
- type of issue is "Epic"
- status of issue is "Closed"
You can put this in the condition in the web fragment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to limit the link issue function just for one status in one workflow- a better solution will be to put on the status properties :
jira.permission.link.denied
It's work.
You can just go to you relevant workflow-> open as a diagram -> click on the status -> click Properties -> then add "jira.permission.link.denied" under Property Key -> add -> publish workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.