It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

data-target-options is not working in message card.

Here is my card json:

{ "message":"<b>test1<b>", 
 "style": "link",
 "id": "sldhfgsidhg-sdfhdfh-dfghdfgh",
 "title": "Test for checking.",
 "description": {
 "format": "html",

 "value": "<b>Add-on link:</b> <a href='#' 
data-target-options='{\"options\":{\"title\":\"Custom Title\"}, 
\"parameters\":{\"article_id\":\"1234\"}, {\"urlTemplateValues\": 
{\"article_id\": \"12345\"}}}'>Open Dialog with parameters</a>"
 "date": 1443057955792
"message_format" : "html"



I have capabilities as

"externalPage": [
{ "key": "test-page","url": "{baseURL}?article={article_id}", "name": { "value": "Test Click"}}

I want to pass article ID for external page link which should open in browser with JWT and  article_id as parameters. When I click on message card link, article_id is not replaced with value which i sent in data-target-options.

Can you guys please help me out.

1 answer

1 accepted

0 votes
Answer accepted
Anatoli Atlassian Team Jun 15, 2016

Hi Ramesh,

You should put your parameters in message.metadata as described here and then it should work.

Thanks a lot. That works.

How can I use data-target in "url" in card.

Example: "url": "<a href='#' data-target='test-page'></a> "

This is not working for me.






I would like to target the link URL to external page which should be similar to "data-target", so that I can get user context in my plugin.

Anatoli Atlassian Team Jun 16, 2016

I see. It is not possible right now. We have an issue for target url (internal)


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Hipchat

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

35,199 views 9 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you