Forums

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

Condition to hide "Created Linked issue"

zaharovvv_suek_ru
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 18, 2018

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"
?

2 answers

1 accepted

1 vote
Answer accepted
Tarun Sapra
Community Champion
July 18, 2018

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" 

Tarun Sapra
Community Champion
July 18, 2018

You can put this in the condition in the web fragment

1 vote
Neta Elyakim
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 18, 2018

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.

Suggest an answer

Log in or Sign up to answer