Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Writing a behavior that creates a parent link to issue created

I need help writing a behavior script using the Scriptrunner. 

We have a custom field called Client Project Category and it is a single issue picker. I want to set a behavior that when that field is populated the Client Project Category issue should also be set as the parent of the issue being created. 

Example: I am creating a new Task (ABC-1) and in that task I set the Client Project Category field as (XYZ-2). When ABC-1 is created I also want XYZ-2 to be set as the Parent Of ABC-1. 

4 answers

2 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Alejandro Suárez - TecnoFor
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jun 09, 2020

@Kristin Rains maybe a listener then? you can filter that listener as much as you want.

0 votes
Answer accepted
Alejandro Suárez - TecnoFor
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jun 09, 2020

Hi @Kristin Rains why don't you do this in a postfunction?

@Alejandro Suárez - TecnoFor That is definitely an option, but it would need to be added to multiple workflows. I was just trying to find a way to have something that would work across all projects/workflows without adding to each individual one. 

@Alejandro Suárez - TecnoFor thanks for the suggestion! To be honest my biggest struggle is I don't know how to write code so I don't know how to start writing a script for this situation. I've found the scriptrunner documentation to be more confusing than helpful. I need something to tell me where to start and what needs to be included in the script. 

TAGS
AUG Leaders

Atlassian Community Events