update custom field in transition based on project category

I would like to have a custom field set equal to project category when a ticket is created in this project.

So far, I do it in the workflow at the create transition with separate workflows each with the right value in a custom field set publication function.

My need is to set this custom field to a default value depending on global property of the project when the ticket is created in a unique workflow for all projects. And the unique global property of the project I see is the project category.

It seems that groovy script is a possibility, but it is beyond my knowledge of jira...

Any clue ?

1 answer

This widget could not be displayed.

You can use the Update Issue post-function of the Update on Transition for JIRA add-on, which allows for updating an issue based on various forms of conditional processing. Just set the condition based on the project_category variable described here, and then set your custom field as desired.

This recipe shows how to add a comment during a workflow transition, based on identifying issues with a particular type of link defined to the issue being transitioned. It's not exactly on point with what you're trying to do, but it should give you a good sense of how it will work.

This add-on saves from having to do (and maintain!) coding to do many things! wink

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

72 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you