Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Crucible API to link JIRA issueid to Code Review.

We are used the Perofrce and Crucible and try to develop the pre-commit code review system.

the Perforce consultant developed the p4 trigger script to make the Code Review in Crucible by crucible.py file that is provided Atlassian Crucible product.

However, crucible.py is not supported the linking to JIRA issueid but provided the creating the Code Review request.

So after creating Code Review in Crucible, I want to link the Jira Issue and Crucible Code Review by Command line, JAVA or REST API.

Of course, in web page of Crucible Code Review, I can link the JIRA issueid, but it should be acted by Human action.

Can you suggest proper way to link Code Review and JIRA issueid by cli or Crucible api ?

Can you give any example code for this ?

Thank a lot

1 answer

You can link a JIRA (or multiple JIRAs) to the crucible review that gets created by crucible.py. The way you can do this is by passing the JIRAs in the title of the review. So, when the review gets created, the title will have the JIRAs listed and linked to the appropriate JIRA(s). If you have only one JIRA, crucible will link it and you will be able to see it in the Display section on the web and if there is more than one JIRA, it'll still link all the JIRAs and also show the first one in the Display section.

Suggest an answer

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

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

183 views 0 5
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