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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to update issue parent in jira automation in nextgen projects?

Hello!

I have the following automation in nextgen project:

* When issue is linked, assign the new linked issue to the source issue parent (epic).

However, I keep getting "invalid JSON" error.

Any idea?

Screenshot 2021-04-05 171807.pngScreenshot 2021-04-05 171823.png

3 answers

@Sahar ben

let's see if we can find the answer here from the community.

Hi @Matan Grady 

I believe you need to branch on the destination issue for that smart value to work.  Please look at this article for details:

https://blog.codebarrel.io/how-to-use-the-linked-issue-trigger-in-automation-for-jira-1616b68c2d6e

Best regards,

Bill

Hello @Bill Sheboy , and thanks!

Actually I was managed to get the issue parent.
My problem is with updating the issue parent.

I can't understand if jira next-gen projects supports updating an issue parent.

When you edit/update an issue, that issue needs to be the focus in the rule.  For example, it needs to be the trigger issue or an issue within a branch's selection.

Although you may be able to see the key of a parent with the syntax you are showing, the rule isn't updating the parent: it is not "in scope".

Just to be clear, are you trying to update:

  1. the parent of the issue that triggered the rule, or
  2. the parent of the issue that was linked to the issue that triggered the rule?

If you want #1, as simple branch on parent should work.  If you want #2, you would need to use a branch on JQL for the key of that linked issue's parent.  They you may perform the edit within the branch.

Hi @Bill Sheboy ,

 

This is not my problme. My problem is how to update the issue (I am already on the right branch for it), but assign a parent to it.

For example, update issue X-123 to be a child of issue X-5.

0 votes
Eric Atlassian Team Apr 06, 2021

Hi @Matan Grady ,

 

You should be able to select 'Epic Link' from the fields dropdown in Edit issue action.

 

Automation is able to figure out that the issue being acted on belongs to a next gen project and it will set the correct field (parent).

 

Eric 

Hello @Eric

I need to update the field from advanced field editing.

This is how my JSON looks like.

Still I get an error of invalid JSON.

Screenshot 2021-04-07 084600.jpg1231321.jpg

Any ideas?

Like Sahar ben likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

106 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you