Forums

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

How to display webpanel on issue using condition by project key?

Gobinath
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 28, 2019

Hi,

I'm trying to display webpanel on issues that created under a particular project, however I have tried with several conditions and the last attempt was using condition below:

{
"condition": "entity_property_equal_to",
"params": {
"entity": "project",
"propertyKey": "key",
"value": "BAOJDEV"
}
}

With numerous attempt, nothing works. Can anyone assist me, on how can I achieve this?

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 29, 2019

Hey Gobinath, welcome to the Community.

Are you using Scriptrunner to add the panel? According to the Scriptrunner documentation, with a project key of 'KEY' you'd use a condition like this:

jiraHelper.project.key in ["KEY"]

If that's not the case, we'll need a little more context about where you're setting this up (Server or Cloud, with/without Scriptrunner) to provide more guidance.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer