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

Hi;

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.

Best,

RMRodrigues.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

207 views 4 9
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