Commits

vinothini  committed 6e226f8

task type dev r testing check

  • Participants
  • Parent commits 6dc95b6

Comments (0)

Files changed (1)

File profiles/metrics/modules/jira_api/jira_api.module

                 $node_id = $task_node->nid;
                 //    echo $task_node->title.' = '. $tkt->key . ":" . $tkt->summary.'<br/>';
                 if (in_array('qa', array_values($user->roles))) {
-                    if ($task_node) {
+                    if ($task_node && $task_node->field_task_type[0]['value']=='Testing') {
                         import_from_jira($tkt, $node_id, "update");
                         $cnt++;
                     }
-                } elseif (in_array('dev', array_values($user->roles))) {
-                    if ($task_node && $task_node->field_uname[0]['uid'] == $user_id) {
-                        echo $task_node->field_uname[0]['uid'] . ' = ' . $user_id . '<br/>';
+                }
+                elseif (in_array('dev', array_values($user->roles))) {
+                    if ($task_node && $task_node->field_task_type[0]['value']=='Development' && $task_node->field_uname[0]['uid'] == $user_id ) {
+                    //    echo $task_node->field_uname[0]['uid'] . ' = ' . $user_id . '<br/>';
                         import_from_jira($tkt, $node_id, "update");
                         $cnt++;
                     }