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

When you copy and paste code into a comment do you get an "Unknown macro: " embedded in your comment?

Nimi Benjamin February 25, 2016

Sometimes when I copy lines of code into a comment, I see a "Unknown macro:" error embedded in my comment.

Here is an example of the code I'm copying:

        //if(!existsGroup(groupName)){

        //      return false

        //}

        if(!existsGroup(groupName)){

 

This is how it looks in Crucible:

 

//if(!existsGroup(groupName))

Unknown macro: { // return false //}

 

if(!existsGroup(groupName)){

 

 Any idea why this is happening

 

 

1 answer

1 accepted

1 vote
Answer accepted
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 25, 2016

Crucible uses wiki markup. And inside curly brackets { } you can put macros. As you're pasting text with brackets, it tries to convert it to a macro and fails. Try to write the following:

{code}
paste your code here
{code}

 

https://confluence.atlassian.com/crucible/using-wiki-markup-in-crucible-298977438.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events