Xporter for JIRA - Variables in hyperlink title + href

Hi,

Using JIRA 7.1.7 server + Xporter for JIRA 4.3.0.

Is anyone able to use a variable in both the title and href of a hyperlink?


I have the following snippets in my Word document:

${set(statuslist,"status IN (Open, 'In Progress', Testing)")}

which prints just fine when I write ${statuslist}.

When I substitute this into a hyperlink, one works fine:

@{title=link to JIRA|href=${BaseURL}/issues/?jql=${statuslist} AND project = TASK AND issuetype = Task}

and

@{title=${jqlcount:${statuslist} AND project = TASK AND issuetype = Task}|href=${BaseURL}/issues/?jql=project = TASK AND issuetype = Task}

When I attempt to substitute it twice with:

@{title=${jqlcount:${statuslist} AND project = TASK AND issuetype = Task}|href=${BaseURL}/issues/?jql=${statuslist} AND project = TASK AND issuetype = Task}

then ${BaseURL} appears not to substitute and it becomes a local link.

link1.png

link2.png

Has anyone been able to use a variable in both the title and href of a hyperlink?

1 answer

1 accepted

Hi @Jimmy Van,

Try to use this:

 

${set(myJqlCount,"${jqlcount:${statuslist} AND project = TASK AND issuetype = Task}")}
@{title=${myJqlCount}|href=${BaseURL}/issues/?jql=project = TASK AND issuetype = Task}

 

I hope this will help you.

Cheers,

Rui Rodrigues.

Thanks Rui thumbs-up I tried:

${set(myJqlCount2,"${jqlcount:${statuslist} AND project
= TASK AND issuetype = Task}")}
@{title=${myJqlCount2}|href=${BaseURL}/issues/?jql=${statuslist}
AND project = TASK AND issuetype = Task}

with the ${var} in the href, and that seemed to work.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

88 views 0 5
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