Hi, I am trying to connect a Custom Process Step in Jira Align with a Custom Jira. The plan is to connect a state in a Jira Feature Or Epic with a Jira Align Feature. The proposed plan is to use python and get the step in Jira as well as the Jira Align Feature that it is linked to. Then go to Jira Align and send an update moving the Custom Process Step. I have two questions;
1. How would I send an update or put request using python (The link is always changing and the Feature ID (I can try to pass this field in so not too worried about this). I am thinking about using a CURL command but the link is always changing.
2. Is this possible as I have been trying and am stuck now. I can send a put request using postman but that is when all the data and fields are entered (just a solo situation)?
The answer to your question is quite complicated, so I first want to make sure that you know that Jira Align can be set up to automatically sync Jira's work flow Status bidirectionally. This Jira work flow status will also be mapped to Align's "State" field, so that field would potentially also change when a new Status is synced from Jira for a Feature.
Jira
----------------
Jira Align
Hi, yep I am trying to sync the process step with a state in an Jira Feature. The process step should not be synced with the state in Jira Align
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have a Python example. You mentioned PostMan so maybe this snippit from Postman will help. Note the use of PATCH rather than PUSH allows you to specify the fields you want to update.
var body = new Array();body.push({op: "replace", path: "/processStepId",value: pm.variables.get("myIssues")[pm.variables.get("myIndex")].originalStep})body.push({op: "replace", path: "/state",value: pm.variables.get("myIssues")[pm.variables.get("myIndex")].originalState})
console.log(body);pm.variables.set("myRequestBody", JSON.stringify(body));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure i am understanding this right but if i wanted to change the processstepId to in progress from not started, would your code do that? How do i change it to specific states?
thank you for all the help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the sample code sets both the processStepId and State.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.