Adaptavist Script Runner (Groovy) - Create subtask on click - groovy

I´m a bit lost with the Adaptavist Script Runner for JIRA.
I want to create several subtasks via a clickable button within an epic.
I managed to create a subtask via script but I have not managed to find a solution where the user can click on something and then several subtasks are created at once.
Anybody got a good solution for that?
Thx!

As workaround you can create transition from any to any status and place groovy script to this transition which will be create subtasks. But also scriptrunner have ability to customize UI docs.

Related

Custom view for parameters on Azure Devops pipelines build

For some time im looking for a possibility to display parameters on build view on Azure DevOps. Unfortunately i did not found any system option to enable it. I wonder if there is a way to create a custom tab in this view to display the params used in the current build. Right now the only option of seeing the params is clicking on "Run New" button and lookup for the params used in last run. What about runtime lookup? , not possible.
The tab next to Summary, Tests called Parameters will do the trick. In example like Jenkins has it's Parameters view.
Is there any already existing way to implement such or simmilar view?
An image to imagine what view im talking about :)
Looking google for already existing possibilities or info about how to implement this.
You could check the run time parameter selected in the job log.
Pipeline summary UI -> Click the Job -> Job summary page -> Job preparation parameters
Here's the parameter defined in the test pipeline.
Another workaround is to add a script task in your pipeline to echo the parameters. So that you can check out what parameters are selected from the task log later.
-script:|
echo "name ---> ${{parameters.name}}"
displayName:'Parameters Selected'
If you want the UI section like "Tests" view, currently there's no build in feature to achieve this, you could create a suggestion via: Visual Studio Feedback

How to get current workflow properties from node.js?

I have several GitHub actions created with workflow *.yml files. They run automated tests.
On each scheduled run of these workflows, I need to get some properties from the current workflow from my node.js code that is running. For example name.
How do I do that?

Bundle synchronization in B2C project

I am working on a B2C project.
We are using customized bundle implementation in our project.
However we were struggling with making bundle synchronization work.
With some effort, we managed to find the ImpEx to synchronize the Bundle:
UPDATE CatalogVersionSyncJob;code[unique=true];roottypes(code)[mode=append];
;$syncJobCode;BundleTemplate,BundleTemplateStatus;
However, I am worried whether this will also synchronize the ChangeProductPriceBundleRule available out of the box.
Also how do I synchronize this from backoffice?Is running this cronjob from the Backoffice the only solution?How do Backoffice users see a Synchronize button?Is creating a separate node necessary?
How to synchronize from backoffice?
Go to Backoffice
System -> Background Processes -> Jobs
Search for your sync job and use Sync button for panel
Is running this cronjob from the Backoffice the only solution?
You can schedule this job to run on specific interval (Cron Job)
Is creating a separate node necessary?
Not necessarily but you can customize if you want.
Hope it helps!

How to trigger a script in Netsuite using API

I am new to Netsuite. My company has a Netsuite instance with many customization scripts. Currently we are doing some automated testing, so we need that script to be executed for loading data from external system.
Most of those scripts are scheduled for 1 hr. In order to avoid the wait for scheduled run I am wondering if there is any way to trigger those scripts using APIs ondemand ?
As far as I am aware the only way you could do that, would be to write a RESTlet that you could call externally. Are these all scheduled scripts, or also Map/Reduce? Are you specifically needing to run the scripts externally, via an external call?
If you do not need to run them externally, the best way would be to simply unschedule the deployment (or just make a duplicate deployment - depending on whether the deployment ID is hardcoded in a call in the script), and save and execute that deployment. That will trigger the script to act as though it was time for it to run.
If you need to call it externally, I'd just write a simple GET RESTlet that calls the scheduled script. You can find information about that here at these two links.
*Make sure you are logged into NetSuite before trying to click the links
SuiteScript 2.0 RESTlet Script Type
task.ScheduledScriptTask
Hope that helps out.

Jenkins - mass change method/tool to change builds

I have an API that checks for holiday and runs/not runs a build based on the result. The problem now is that I have to manually change Jenkins jobs to include that logic which is obviously very inefficient. Is there a way/tool to quickly add/remove that check or any other checks in the future to specific jobs quickly without going through them one-by-one? I could see maybe using Jenkins API as one option, is there anything else?
Thanks.
User JobDSL you can programmatically solve your problems in one place with a Groovy DSL.
https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin

Resources