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 votes
Answer accepted

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
Community showcase
Published Mar 14, 2019 in Jira

Updates to jira.atlassian.com give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

629 views 1 15
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