Guest User

Untitled

a guest
Nov 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. "<?php echo __("Project"); ?>","<?php echo __("Issue number"); ?>","<?php echo __("Issue title"); ?>","<?php echo __("Reported by"); ?>","<?php echo __("Assigned to"); ?>","<?php echo __("Status"); ?>","<?php echo __('Category'); ?>","<?php echo __('Priority'); ?>","<?php echo __('Reproducability'); ?>","<?php echo __('Severity'); ?>","<?php echo __("Resolution"); ?>","<?php echo __('Targetted for'); ?>","<?php echo __("Last updated"); ?>","<?php echo __("Percentage complete"); ?>","<?php echo __("Time estimated");?>","<?php echo __("Time spent"); ?>","<?php echo __("User pain"); ?>","<?php echo __("Votes"); ?>","textolalala"
  2. <?php if ($issues != false): ?>
  3. <?php foreach ($issues as $issue): ?>
  4. <?php
  5. /* Deal with issuecreator */
  6. $temp = $issue->getPostedBy();
  7. if ($temp instanceof TBGUser && !($temp->isDeleted()))
  8. {
  9. $creat = $temp->getBuddyname();
  10. }
  11. elseif ($temp instanceof TBGTeam) {
  12. $creat = $temp->getName();
  13. }
  14. else
  15. {
  16. $creat = '-';
  17. }
  18.  
  19. /* Deal with issue assignee */
  20. $temp = $issue->getAssignee();
  21. if ($temp instanceof TBGUser && !($temp->isDeleted()))
  22. {
  23. $assignee = $temp->getBuddyname();
  24. }
  25. elseif ($temp instanceof TBGTeam) {
  26. $assignee = $temp->getName();
  27. }
  28. else
  29. {
  30. $assignee = '-';
  31. }
  32.  
  33. /* Deal with issue status */
  34. $temp = $issue->getStatus();
  35. if ($temp instanceof TBGStatus)
  36. {
  37. $status = $temp->getName();
  38. }
  39. else
  40. {
  41. $status = '-';
  42. }
  43.  
  44. /* Deal with issue priority */
  45. $temp = $issue->getPriority();
  46. if ($temp instanceof TBGPriority)
  47. {
  48. $priority = $temp->getName();
  49. }
  50. else
  51. {
  52. $priority = '-';
  53. }
  54.  
  55. /* Deal with issue resolution */
  56. $temp = $issue->getResolution();
  57. if ($temp instanceof TBGResolution)
  58. {
  59. $resolution = $temp->getName();
  60. }
  61. else
  62. {
  63. $resolution = '-';
  64. }
  65.  
  66. /* Deal with issue category */
  67. $temp = $issue->getCategory();
  68. if ($temp instanceof TBGCategory)
  69. {
  70. $category = $temp->getName();
  71. }
  72. else
  73. {
  74. $category = '-';
  75. }
  76.  
  77. /* Deal with issue reproducability */
  78. $temp = $issue->getReproducability();
  79. if ($temp instanceof TBGReproducability)
  80. {
  81. $reproducability = $temp->getName();
  82. }
  83. else
  84. {
  85. $reproducability = '-';
  86. }
  87.  
  88. /* Deal with issue severity */
  89. $temp = $issue->getSeverity();
  90. if ($temp instanceof TBGSeverity)
  91. {
  92. $severity = $temp->getName();
  93. }
  94. else
  95. {
  96. $severity = '-';
  97. }
  98.  
  99. /* Deal with issue milestone */
  100. $temp = $issue->getMilestone();
  101. if ($temp instanceof TBGMilestone)
  102. {
  103. $milestone = $temp->getName();
  104. }
  105. else
  106. {
  107. $milestone = '-';
  108. }
  109.  
  110. $value1 = $issue->getcustomField('textolalala');
  111.  
  112. unset($temp);
  113.  
  114. $percent = $issue->getPercentCompleted().'%';
  115.  
  116. ?>
  117. "<?php echo html_entity_decode($issue->getProject()->getName()); ?>","<?php echo html_entity_decode($issue->getFormattedIssueNo()); ?>","<?php echo html_entity_decode(strip_tags($issue->getTitle())); ?>","<?php echo html_entity_decode($creat); ?>","<?php echo html_entity_decode($assignee); ?>","<?php echo html_entity_decode($status); ?>","<?php echo html_entity_decode($category); ?>","<?php echo html_entity_decode($priority); ?>","<?php echo html_entity_decode($reproducability); ?>","<?php echo html_entity_decode($severity); ?>","<?php echo html_entity_decode($resolution); ?>","<?php echo html_entity_decode($milestone); ?>","<?php echo tbg_formatTime($issue->getLastUpdatedTime(), 21); ?>","<?php echo $percent; ?>","<?php echo $issue->getFormattedTime($issue->getEstimatedTime()); ?>","<?php echo $issue->getFormattedTime($issue->getSpentTime());?>","<?php echo $issue->getUserpain(); ?>","<?php echo $issue->getVotes(); ?>","<?php echo $value1; ?>"
  118. <?php endforeach; ?>
  119. <?php endif; ?>
Add Comment
Please, Sign In to add comment