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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,883 views 2 7
Join discussion

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