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

Accepted Answer
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
Community showcase
Published 9m ago in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

8 views 0 0
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