XPorter : Can I use xPorter with conditionals to show only fields which are filled?


First of all I would like to ask is there any way to use newline in between javascript code? And whatabout global variables? Can't I use two different javascript segment which uses the same variable so that I can keep count or some other information that is not possible in just one code segment?

Ex 1. : %{var counter = 0;} %{counter++; "Hello world now the counter is " + counter}

Ex 2. : %{var condition = '$fieldName'.length > 0; if(condition){<newline>

//Put some line, image, table or anything related to "fieldName"

};} // I hope you understand the use, in for loops it solves so many problem.

Second, does it have the ability to create special fields like comments, subtasks and links that is convenient for using for loops? I can create some fields, but the ones enable in Jira does not meet my needs. I also need to be able to create tables, not just lists or plain text areas as a field. To sum up, I need dynamic list areas that I can add my information like as I do in comments section.

2 answers

Hi there,

Xporter for JIRA has a new great feature available on 3.4.0. Take a look here.

This feature allows you to have global variables. It's awesome.



Did you get the solution, even I have a similar requirement, please share if you have some solution of it. 

Hi Mohamed; For both of those, the answer is no. Xporter supports neither global variables nor dynamic fields. In their documents, "for" usage is limited to several fields such as comments, links and subtasks. It is very strict form of documenting, and if it does not meet your requirement, I encourage you to carry on.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,197 views 5 10
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