Sir @MrGeneration confirmed to me that to able to use the Pending state in macro you also need to set a pending till if not zammad will ignore the macro with pending state.
My concern is the pending till is you can only set a specific date, my request is to add additional option for the pending till
like if you select pending till you choose manual assign of the date in ticket before you click the update
(all settings applied to the ticket after you used the macro and before zammad update the ticket you need to select the date)
As of now I choose the specific date to use the pending state in macro but the pending till date is not auto increment so when you created the macro pending till that date will auto assigned in the ticket