I am not able to assign a task to somebody. Assigned to field only shows -unassigned-

Events happening in the community are now at Drupal community events on www.drupal.org.
bunset-temp's picture

Im logged in like admin.
I try to assign a task I create to some user. I only see -unassigned- in listbox.
How can I do?

Comments

Did you create people? You

vantuykom's picture

Did you create people? You have to link a storm-person to a user before you can assign a task.
Or did you assign the project to somebody? sometimes, when you do that, you can not assign a task for that project to anybody else.

regards,

Done - Resolved

bunset-temp's picture

That is vantuykom, than, you very much.

I didnt create any people, I had disabled storm-person module.
Now I have enabled storm-person module and created some people, then I can assign tasks to them.

I didnt enable storm-person module because I didnt want people, just to be able to assign tasks to drupal users, but I see is not posible in storm.

For me, I need this:
An user register in drupal.
A person is automatically created, relation with drupal username is automatically created, and person username is the drupal username.

I dont like I have to manually assign a drupal user to a person. I need an automatize this process.

Create a module named

carsten müller's picture

Create a module named "stormperson_by_user_registration"

stormperson_by_user_registration.info

name = Stormperson by user registration
description = Creates a new stormperson if a new user registers
dependencies[] = storm
dependencies[] = stormperson
core = "6.x"
php = 5.2

stormperson_by_user_registration.module

<?php
// $Id: $

/
* @file stormperson_by_user_registration.module
* creates a new stormperson if a new user registers
*/



/

* Implementation of hook_user()
*
* @return unknown_type
*/
function stormperson_by_user_registration_user($op, &$edit, &$account, $category = NULL) {

  switch ($op) {

    case 'insert':
      stormperson_by_user_registration_create_new_stormperson($account);
      break;

  }

}


/**
* create a new stormperson
*
* @return unknown_type
*/
function stormperson_by_user_registration_create_new_stormperson($user) {

  if (!empty($user)) {

    $sql  = 'SELECT user_uid ';
    $sql .= 'FROM {stormperson} ';
    $sql .= 'WHERE user_uid = %d ';
    $result = db_result(db_query($sql, $user->uid));
    if (empty($result)) {
      $node = new stdClass();
      $node->type = 'stormperson';
      $node->status = 1;

      $node->title = $user->name;
      $node->uid = $user->uid;

      $node->user_name = $user->name;
      $node->fullname = $user->name;
      $node->email = $user->mail;
      $node->user_uid = $user->uid;

      node_save($node);
    }

  }

}

so is the problem solved ? as

Pushkar Gaikwad's picture

alright, you need to enable Storm Team module too to get the assigned to drop down working

bunset-temp's picture

Its fantastic.
I will be testing it and trying.
Thank you for your valuable helping.

subscribing

bunset's picture

subscribing

fix

bcausey's picture

Enable teams

Project Management Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: