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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Xporter - Get latest status transition and its author

Hi,
In my word docx template, I would like to get the latest status of an issue and when it was transitioned to that status.

For example, I have a test plan and the following statuses: A, B, C and D.
The test plan made the following status transitions: A->B->C->D->A->B->C->D.
I need to get the Author, Date and the Status of the last time when the issue was in status C.

If I follow https://confluence.xpand-it.com/display/public/XPORTER/Iterations#Iterations-IteratingIssueStatusTransitions it returns every entry for when the issues when through the specific status.
I only need the latest one.

Can you please help me?

1 answer

Hi @Filip Tanevski

Please try to use this code:

${set(NewStatus,0)}
${set(NewAuthor,0)}
${set(NewDate,0)}

#{for statusTransitions}               
  #{if (%{'${StatusTransitions[n].NewStatus}'.equals('Resolved')})}

    ${set(NewStatus,${StatusTransitions[n].NewStatus})}
    ${set(NewAuthor,${StatusTransitions[n].Author})}
    ${set(NewDate,${dateformat("dd-MM-yyyy HH:mm:ss"):StatusTransitions[n].Created})}  
             
  #{end}
#{end}

New Status ${NewStatus}
New Status ${NewAuthor}
New Status ${NewDate}

If you need more help, please create a new ticket in our Service Desk.

Best Regards,

Team Xporter

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

24 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you