Hi Team,
In jira, we want to create a scheduler at specific date and time based on the input provided by user in frontend (Jira Issue panel) App.
Thanks in advance.
Regards,
Suman C.
Hi Team,
In jira, we want to create a scheduler at specific date and time based on the input provided by user in frontend (Jira Issue panel) App.
Thanks in advance.
Regards,
Suman C.
Hello @SumanChinnaraju
When you say a âschedulerâ, are you referring to Scheduled Triggers?
Hi @sunnyape,
Thank for responding. Yes I am referring to Scheduled trigger but the documentation only refers to scheduled triggers which are preconfigured (manifest.yml) in the app but, we are supposed to create a schedule at specific date and time which user will select in the frontend(Issue panel App).
Thanks,
Suman C.
Sorry, but I donât know how that would be possible, since, as you have already discovered by reading the moduleâs documentation, Scheduled Triggers:
You seem to have answered your own question.
Well, you can have a scheduled trigger that runs as frequently as possible (aka every hour) and does nothing on its own, but fetches a list of user-defined triggers and sends an event if one of those cron jobs should start.
Keep in mind that you wouldnât be able to specify the exact time since the granularity can only go as low as 1 hour, so youâll have to adjust for that
Hi @PaoloCampanelli,
Thank you for suggesting a approach to achieve our usecase.
Can we use node package like ânode-cronâ in jira forge app for creating a scheduler at specific date and time.
Thanks,
Suman C.
No and yes.
No, if you want to keep with only Forge native capabilities (without Forge Remote). Between the compute model of functions-as-a-service and the existing events, there isnât anything thatâs going to run your function frequently enough to be triggered at the precision of anything under an hour. The node-cron package wonât change that.
Yes, if you would be willing to use Forge Remote, where you can keep your own âclock serviceâ running and send âmessagesâ into the Forge app when your own service knows the time is right.
Regardless of whatâs doing the timing, I think you could quickly find yourself running into the Forge quotas and limits with chatty tasks that run frequently. Even hourly tasks could quickly eat up invocation limits. If you use Forge Remote anyway, you might offload logic into the remote as well, and keep the Forge functions to a minimum for the purpose of serving UI.
HI @ibuchanan,
Thank you for answering.
Is there any way in forge where we can achieve our use case(âcreate a scheduler at specific date and time based on the input provided by user in frontend (Jira Issue panel) Appâ) without using the forge remote.
Thanks,
Suman C
You canât archive it directly, but I have a workaround for you. Itâs a bit unconventional, so use it carefully!
Just keep this solution between us!
Thank you @AndreiPisklenov