Is it possible to use context parameters in condition value?

Hi

I have a question as in the topic.

I've just wanted to use condition parameters to determine when my web panel should be visible.
I've decided to use condition parameters with stored property
https://developer.atlassian.com/static/connect/docs/latest/concepts/conditions.html#static-condition-parameters

 

Example:

- Property
PROPERTY_KEY = myproperty
VALUE = {"id":"10002","key":"PROJECT KEY","name":"Project Name"}

 

- Condition

{  
   "condition":"entity_property_equal_to",
   "params":{  
      "entity":"addon",
      "propertyKey":"myproperty",
      "objectName":"id",
      "value":"{project.id}"
   }
}

 

When I set value in condition to "10002" everythings works fine, but when I try to use context parameters, I get an exception during installation:

Installation failed. The add-on includes a web fragment condition (entity_property_equal_to) with invalid parameters (Could not parse the value provided).

So, Is there any way to use context parameters in condtion?


Best Regards
Rafał Janiczak

1 answer

1 accepted

This widget could not be displayed.

Unfortunately the ability to use context parameters in entity_property_equal_to condition values has not yet been implemented; but it is an open issue: https://ecosystem.atlassian.net/browse/AC-1608

 

I have added this Atlassian Answer to the issue. Please feel free to watch, vote and comment on that issue. I can tell you that, at this point in time, it is not on our list of short term priorities. However, if it gets enough votes then that could change.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

115 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you