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
Accepted answer

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 Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,247 views 17 10
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