Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a new project using JIRA REST API also creates new workflow scheme and screen scheme

Nitin Makwana
November 28, 2019

Hi,

 

When I create a new project using JIRA REST API, a new workflow scheme and screen scheme is also created.

 

But I would like to use a default workflow scheme instead of creating a new one when a new project is created using JIRA rest API.

 

So can anyone help me to achieve this goal?

 

3 answers

1 accepted

0 votes
Answer accepted
Bharadwaj Jannu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 15, 2013

Hello Sergey Zaystsev,

You view the Page Source from the browser and find something like

<li><a id="key-val" rel="512281" href="/browse/title-4343">title-4343</a></li>

in that 512281 like number is the id for the issue title-4343.

SergeZ
September 15, 2013

thank you, it works! But now I do think on how to automate this in order to use such approach in programme code... Or may be there is another way to find _id_ in a more programmable way

Like Seena Schmitt likes this
Bharadwaj Jannu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 15, 2013

Programmatically you use issue object to get id and based on the scenario you can get the issue object.

Refer document and use as issue.getId()

Bharadwaj Jannu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 17, 2013

hi Sergey Zaystsev,

do you get the issue id ?

0 votes
Brian Spence
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 16, 2015

May not be the easiest or most direct way to get there, but here is what I do (in Chrome):

  1. View Source (F12)
  2. Right Click the Issue Key and select Inspect - This highlights the needed row in the Source view
  3. Note the number in the (rel="12345") entry.

See attached.

JIRA - Finding Field ID for a specific Issue.png

0 votes
SergeZ
September 17, 2013

Yes, I got it in two ways - first as you described above, second - rest/api/2/issue/{issueTitleHere} and read the response ( json ). IssueId is also available there.

Currently there is another thing which bothers me much more - 212929 ticket... Can you give some guidence on that ?

Bharadwaj Jannu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 17, 2013

Sergey Zaytsev,

appreciated if you accept as an answer for this question. Also I don't have much idea about Zephyrs plugin you mentioned above.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events