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

[Automation for JIRA - XRAY ] Add Test into Plan test for Done Stories when the sprint is completed

Alex I'm New Here Feb 04, 2021

Hi everyone,

I'm new in automation in JIRA, this is my very first script. Long story short,

My expectation : When a sprint is completed (trigger), i would like to add all tests linked to all Done Stories into a Plan test witch have start with the same name. And if the plan test does not exist, create it.

 

What I did :

  • Trigger : Execute only when specific sprint is completed thanks to a regex filter
  • Condition : Test if the plan test exist, if not create it.
  • Loop : Get all story in specific status with a test linked

Screenshot 2021-02-04 at 11.39.09.png

 

After this point, I am struggle, I don't know how to get each test from each story and put  it into the Plan test (created or already existing).

I am trying to copy ID of linked tests and then paste them into the plan test thanks to the JSON structure.

Another idea :

Shoud start to get all test issues and then find or create the plan test and link them together.

 

Do you have any advice ?

 

Thanks a lot for you help - Alex

1 answer

Hi @Alex 

The relationship between Tests and Test Plan is established using the Xray relations method, so it is only possible to add a Test to a Test Plan using Xray options.

Since currently, Xray does not integrate with Automation providing actions to perform Xray operations, it is not possible to use Automation to perform Xray operations.

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

How to log work and track time in Jira when a person is part of multiple teams

  The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...

58 views 2 1
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