Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13483 closed defect (invalid)

Can't have kis2 working.

Reported by: hakan Owned by: Jon Ashley
Priority: normal Component: KeepInterfaceSimplePlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

Can't have kis2 working. Ubuntu 18.04, Trac 1.2.3. I see kis2.js loaded, without errors.

Plugins I have are mastertickets enabled. dynfields disabled and uninstalled. some other plugins are also installed but not enabled.

I am testing kis2 with a simple custom field labeled "one" as below, but can't have the field "invisible". attachment:trac.ini

[kis2-assistant]
one.visible.all = status==assigned

[ticket-custom]
blockedby = text
blockedby.label = Blocked By
blocking = text
blocking.label = Blocking
one = text
one.label = one

Attachments (3)

kis2_loaded.PNG (128.6 KB) - added by hakan 6 years ago.
plugins.PNG (45.6 KB) - added by hakan 6 years ago.
trac.ini (7.5 KB) - added by hakan 6 years ago.

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by hakan

Attachment: kis2_loaded.PNG added

Changed 6 years ago by hakan

Attachment: plugins.PNG added

Changed 6 years ago by hakan

Attachment: trac.ini added

comment:1 Changed 6 years ago by anonymous

Hello. Just woken up so I'm not at a computer at the moment to check that this is correct, but I think you need single quotes around the word 'assigned'. (Without the quotes, the plugin is looking for a field called 'assigned' and checking whether the value of that field matches the ticket status.)

comment:2 Changed 6 years ago by Jon Ashley

Oops, forgot to log in. I left the previous comment.

comment:3 Changed 6 years ago by hakan

Good Morning Jon :)

Nope, quotes did not help.

I updated the statement to

[kis2-assistant]
one.visible.all = status == 'assigned'

I also tried without .all suffix.

In the case where I forgot the quotes; as it does the check you mentioned that statement shall also return false and the field should not be visible.

comment:4 Changed 6 years ago by Jon Ashley

Hmm... is the name of the section in the configuration file correct? From memory, I think it should be kis_assistant not kis-assistant (i.e. with an underscore in the middle rather than a hyphen).

comment:5 Changed 6 years ago by hakan

Yes, that is it. Blinded with our coding standard,all lines for me is hyphen. Oh God! All those things I tried ! Thank you Jon.

comment:6 Changed 6 years ago by hakan

Resolution: invalid
Status: newclosed

comment:7 Changed 6 years ago by Jon Ashley

That's good. Easy mistake to make. I should have guessed when you said it was loading without errors - it should have been throwing errors like "no field named 'assigned'".

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jon Ashley.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.