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

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

🤺 Atlympic Event: Partnerships

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

191 views 3 7
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