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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,410,323
Community Members
 
Community Events
169
Community Groups

API Rest - getting the workflow scheme id for a given project

Hi,

I am coding a custom script to integrate a product we use into our JIRA support platform however where I am coming unstuck is with getting the workflow's themselves into the C# application I am writing via the REST API. What I want to avoid is having to maintain a map file for mapping issue types to workflows. Whilst I understand there will always be a degree of maintainability with regards to the code, and configuration, I wish to avoid, and delegate this to intelligent code, as much as possible. I feel like either there is something missing in the REST API for this functionality or I have missed something. What I would like to get is the workflow scheme for the project, the URLs for the workflows (or all of the transitions directly) and then have this part of the program download new versions as and when they are published.

Stuart

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted

As no one is able to shed any light on this issue other than Jamie Echlin, and the fact that I have now hard coded the initial configuration schema into my code, I am now shutting this down. The code I have written also updates any out of date workflows however I would have also liked to link back to the schema for any changes there. The solution I am using is an xml configuration file which enables me to do the same thing, albeit manually.

1 vote
JamieA Rising Star Aug 27, 2014

It's simple, there is something missing from the REST APIs. They're not yet complete with respect to the SOAP APIs, and they don't have much in the way of project configuration CRUD stuff.

You can write your own rest api endpoint jira plugin. There are other techniques like screen scraping which I believe the JIRA CLI plugin uses when it can't get info from rest or soap.

Thank you for your response. All I need is the workflow scheme ID which would then spit out what I want:

/rest/api/2/workflowscheme/{id}

This ID is what I am after which then gives me the mapping for the issues and the workflow names. I can then use:

/secure/admin/workflows/ViewWorkflowXml.jspa?workflowMode=live&workflowName=%name%

This gives me the XML files for the workflows themselves. It's the missing link I am really after: the workflow scheme id.

best way to do that just open the workflow schemes screen on JIRA right click on the link of ur scheme and on Delete link right click and select inspect element , you will get the Id 

TAGS

Atlassian Community Events