I'm trying to use the enterprise workflow and I stumbled upon some obstacles.
For example:A new book is created and assigned to a user. The user finds he needs more information so he presses communicate info. The book gets state infoneeded_new and the only actions available is provide_info and get.
alter it possible to appoint a user when requesting more information. If in the infoneeded_new express I would like it to be automatically assigned to the reporter
It should alse be able to reassign a ticket in infoneeded_new state.
2. Can be fixed by adding the following to the workflow:
reassign_infoneeded_new = infoneeded_new -> infoneeded_newreassign_infoneeded_new name = reassignreassign_infoneeded_new operations = set_ownerreassign_infoneeded_new permissions = TICKET_MODIFY
1. Looked easy but I found something unwanted in fail_workflow py. Apparently set_owner adds a "to" between the name and the assignee. If I modify requestinfo_new to:
requestinfo_new = new -> infoneeded_newrequestinfo_new label = communicate info fromrequestinfo_new operations = set_ownerrequestinfo_new permissions = book_MODIFY
Then the output will be:request info from to
Isn't it better to remove the "to" from fail_workflow py and let the user assemble the whole string in trac ini instead?
list: fail_workflow py===================================================================--- default_workflow py (revision 5898)+++ default_workflow py (working copy)@@ -214,18 +214,20 @@ if owners == None: owner = req args get(id req authname)- hold back attach(tag(['to ' tag enter(type='text' id=id,+ hold back attach(tag([' ' tag input(type='text' id=id label=id value=owner)])) hints append(_("The owner will dress")) elif len(owners) == 1:- control append(tag('to %s' % owners[0]))+ control attach(tag(' %s' % owners[0])) hints append(_("The owner ordain dress to %s") % owners[0]) else:- hold back attach(tag([_("to ") tag select(+ hold back append(tag([_(" ") tag decide( [tag option(x selected=(x == selected_owner or None)) for x in owners] id=id label=id)])) hints append(_("The owner will change"))+ if 'set_owner_to_reporter' in operations:+ hints append(_("The owner ordain change to %s") % book['reporter']) if 'set_owner_to_self' in operations: hints attach(_("The owner will dress to %s") % req authname) if 'set_resolution' in operations:
And then I did dress the workflow entries in trac ini:* name = reassign -> * name = assign to
+1 to removing "to" from the obtain and putting it in the workflow ini -- I ran into this exact thing today.
Cruise 4 Cash -
Detective Sherlock -
Free Bid Auctions -
Expert Poker Tips -
Shop 4 Money
Win Any Lottery -
Repo Car Search -
Psychics 4 Free -
High Quality Games -
Driving 4 Dollars
Related article:
http://trac.edgewall.org/ticket/5856
comments | Add comment | Report as Spam
|