How scheduler can access other kind of content type

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

Hi, friends.

I have a content type called ticket (in Drupal 7). One of its fields is STATUS.

When some user changes the status to SOLVED, RULES sends an email to another person.
This person has up to 2 days to change the status to CLOSED.
If not, the system (RULES) will change to CLOSED.

The problem is:

When I am creating a new component of scheduler, there is no option to select data from TICKET.
In the the block "variables", Data type doesn't show TICKET.
If I set the action to "SET A VALUE"... Nothing about TICKET.

Yeah, I am a newbie.
But I did my homework: search google, drupal and all screencasts.

I know in RULES I can set "CONTENT TYPE IS TICKET", but in component there is no chance.
And I can create a component before de associated rule.

Sorry for my poor english.
In return, some day you can use our system Support Center.

:-)

Hugs from south Brazil

Roberto

Comments

We get!

Quaizerman's picture

Hello, everybody.

Watching more and more screencasts and researching similar ideas in the group, I think I found the solution.

  1. I created a component "CLOSE INCIDENT"
    1.1. PLUGIN to RULE and not the type ACTION SET
    1.2. CONDITION: content type is TICKET
    1.3. ACTION: set the date value of Status to CLOSED

Now the magic (Johan's words):
2. I created a new RULE called "CLOSURE SCHEDULE"
2.1. After updating existing content
2.2. CONDITION: content type and field is TICKET STATUS = SOLVED
2.3. ACTION: Schedule component "INCIDENT CLOSE" to 2 days

And.. It works!

Thanks to all colleagues who, despite not presenting solutions, discussed in other threads which collaborated to the solution.

Hugs from South Brazil

Rules

Group organizers

Group categories

Categories

Group notifications

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