I'm trying to automate a bunch of text to appear in the description field of a new version in Jira, as soon as it's created. It's to basically have a template set up of all information that we feel are needed for a release page, like:
Version no.
Write version number here.
Build ID
Write build ID here.
And so on. Is this possible to automate in any way?
Hello @Tobias Viklund
Welcome to the Atlassian community.
If I understand correctly you want to use Automation to edit the information in a Version when the Version is created. You are not trying to edit a work item. Is that correct?
If so, Automation doesn't have an action for editing the Version itself. It has actions only for Versions only to do the following:
Create
Release
Unrelease
It does have a Trigger for Version Created. You would then need to use the Send Web Request action to call the Jira REST API to edit the version.
Since there is no action to edit a Version the automation rule could create a new Version with the required text so the user would trigger the automation rule instead of manually creating the Version the normal way.
The automation rule's manual trigger could even have required user input fields for Version no. and Build ID so that when it creates the new Version it can include the values entered by the user.
The down side to this design is that users could still manually create a Version instead of triggering the automation rule so you might need a separate automation rule triggered on Version create to check if the version's description is missing either of the strings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes that is possible.
Create an automation.
Trigger: On Create
Then: Edit issue
The automation will add the text into description field everytime a new item is created.
If you want to learn tricks on how to add variables to the description, update it after it is created, etc.. check Atlassian Jira Automation Unleashed | Udemy that covers all of these topics and more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.