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

Accepted Answer
0 votes

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
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,150 views 2 7
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