Automate the population of a JIRA custom field based on selection of other field in Service Desk (Li

Hi guys,

we need to automate the population of a custom field in JIRA - "campaign/non-campaign" based on selection of other field "Family + Global Campaign Name" in Service Desk (Linked issues).


This would be the parameters:
If Family + Global Campaign Name value includes *SLT, *PDX, *ABM, *ESA, *REP then choose "campaign" value in the custom field "campaign/non-campaign" of its Linked issue

If Family + Global Campaign Name values is "none" "non-marketing request" "GSI" "LSI" "OOC" "LOC" then choose "non-campaign"value in the custom field "campaign/non-campaign" of its Linked issue

I did a lot of research, but with no success. Could anyone help please?

Lenka

1 answer

1 accepted

0 vote

Create a custom post-function in Groovy, using the ScriptRunner add-on. (Your use case isn't that hard, actually.)

Hi Aron!

Thanks a lot! Do you think so? I trust you then :-)

Thing is that I can not write any script, will I be able to create this custom post function in Groovy?

Lenka

ScriptRunner executes scripts written in the Groovy language.

Even if you cannot write Groovy, they have lots of examples in the add-on documentation. I think you should be able to find something that's relatively close to your problem and tailor that to your needs.

If I were you, I'd look at behaviours: https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

507 views 6 11
Read article

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