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

2 votes

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 8 hours ago in Trello

Alice Camilla on organizing your work/life/fandoms with Trello!

@Alice Camilla is a university student, currently writing her MA thesis in Archaeology. She's also a freelance blogger and content creator, writing about geeky stuff from productivity apps to JR...

34 views 1 6
Read article

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