Deployment State auto set to Expired

Moderator: crythias

Post Reply
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Deployment State auto set to Expired

Post by drodralv »

Hello,

Would be possible to create an automation that will be setting Config Items to "Expired" once the Expired date is achieved?

Maybe other alternative idea?

Thank you
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Deployment State auto set to Expired

Post by root »

Hi,

Not within OTRS without development. The easiest for me would be using the GenericInterface:

- Use the existing operation ConfigItem::ConfigItemSearch to find expired items
- Set the to expired with the operation ConfigItem::ConfigItemUpdate


Execute this via cron once a day and you're all set.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Deployment State auto set to Expired

Post by wurzel »

Hi,

I use pending ticket linked to a CI.

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Deployment State auto set to Expired

Post by root »

wurzel wrote: 23 Dec 2020, 18:14 I use pending ticket linked to a CI.
And how is this done? Creating the ticket and link? Manually?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Deployment State auto set to Expired

Post by wurzel »

Hi,

yes. Someone requests a new hardware - this is my ticket and it stays.
The CI is created manually and linked.

regards
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Re: Deployment State auto set to Expired

Post by drodralv »

Hello,

Thank you guys. So let's say that we should use a workaround to create a reminder. The option from Roy seems to be great, I don't know how to do that honestly. I should investigate.

Thank you again.

Regards
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Deployment State auto set to Expired

Post by root »

Hi drodralv,

Here an example build with PowerShell: https://gist.github.com/rkaldung/1ae7b8 ... f6867b557b

It contains the web service to import, my Computer class definition, and the PowerShell script.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Re: Deployment State auto set to Expired

Post by drodralv »

Hello,

Looks great, thank you, I will keep it for future developments as well.

Regards
Post Reply