Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,125
Community Members
 
Community Events
185
Community Groups

Xporter: Error with images and wiki render

I'm having this same issue with images in Description and trying to render the content using wiki. I tried to replace the size of images without success. I'm trying this

 

${wiki%{'${escape:JQLIssues[j].Description}'.replace(new RegExp('width=\d+,height=\d+!','g'),'width=200,height=200!')}}

 

I noticed that the image tag is coming like this: 

!image-20200417-132307.png|width=1801,height=561!

I tried to remove the whole image and try to change the size without success.

 

Any thoughts?

2 comments

I have the same problem and submitted a ticket.  I want to remove the image completely.  Did you succeed?  I notice that you are missing the ':' after wiki.  

I tried this and it is not working.

${wiki:%{'${TestExecutions[n].TestRuns[a].TestSteps[r].Action}'.replace(/\!.*?\!/,'')}}

Hi, Brigitte. Nice catch with the :! I did not have any success on this and, after expend almost one week trying different things I just gave up and decide to not use wiki....now the exported info is comming with all the tags. I just decided to give another try in a few months and see if there is any update on this.....

Also, sorry for my late response, :(

Hello, I was dealing with the same problem.

I tried many different possibilities to try to resize or delelte the image from the wiki format but is like it's not working with javascript.

So I achive a solution with a workarround, using a property that delete all the images from wiki fields and then I add it with a iteration.

${prop(document.wiki.process.images,false)}

https://confluence.getxray.app/display/public/XPORTERCLOUD/Props#Props-ProcessWikiImage

 

And then in the same iteration of the Description field I use:

#{for images}

${Images[n].Image|maxwidth=600|maxheight=550}

#{end}

 

The problem is this will populate with all the images that the issue/issues have.

 

I was trying to find a way to create a if that take the value images value from the Description and apply it in the #{for images} but no success at the momment.

 

Xporter support is very slow and at the end of the day I gave them the solutions....

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events