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

Need SubTask Relevant QueryString parameters

Hi Team,
Please help me here.

As part of daily routines of creating Tasks & their Sub-Tasks.

We generally create Sub-Task on Task page but I am planning for a below minor web based tool with single form.

I want to design a form with the following fields for a sub-task creation. The form can be built using any framework like Java, Dot Net or Appian BPM tool.

1. Task Number (Input field)

2. Assignee (Input Name/User ID/Email ID field)

3. Title for Sub Task (Input Field)

4. Description for Sub Task (Input Text Area field)

5. Due Date for Sub Task (Input Date Field)

6. SUBMIT button.

 

Expectation in Submit button:

The Submit button event will take the inputs of the above controls and appends the values to the respective parameters in the query string. 

Example: jiratickets.com/projectname/CreateSubTaskIssue!default.jspa?parentIssueId=123456&taskNumber=1234&assignee=ABCD&Title=xyz&description=uvwxyz&dueDate=01012020/

 

So, in my case, I would like to know the jira standard notations of the parameter names for the fields 1 to 5 above. Although Description can be omitted if not feasible.

 

Any suggestion please?

1 answer

@Laxman Prasad Kuppili 

Hello! Thanks for writing. I am not sure about which Jira APIs could be directly used in your case as that is outside my knowledge(somebody from the team will answer it) but I think you might be able to use "Automation" for Jira here.

You can use "Incoming webhook" trigger(choose option "Issues provided in the webhook HTTP POST body"). More details here.

You can plan the rule like this: 

Screen Shot 2020-08-13 at 4.31.16 pm.png

Where in webhook json you can send data, as explained further in curl representation. In "issues" (which is must) you put list of tickets of which you want to create subtasks.

curl -X POST -H 'Content-type: application/json' --data '{"issues":["ISSUE-1"],"task":["title1", "title2", "title3"]}' https://YOURHOOKENDPOINT/hooks/....
Then you can access "task"(can be anything as per your wish) list like {{webhookData.task.get(0)}} will give you "title1" in this case. Similarly you can create more list fields which you can easily access. 
If this seems encouraging and resolves your concern, you might wanna give it a shot.
Let us know in case of further queries.

Cheers
Sherry(A4j)

Thanks @Sherry Goyal  for the response.

To be honest, I am not much from Programming background but trying whole-heartedly to accomplish. I work as Application Manager delegate and I create Sub-tasks in addition to my risk management routine.

Creation of sub-tasks is painful every time to fill by opening the Tasks. Rather, I would like to create a single web form as below and the submit button should do the job of appending the values taken from the controls.

 

1. taskNumber = Task Number (Input field)

2. assignee = Assignee (Input Name/User ID/Email ID field)

3. title = Title for Sub Task (Input Field)

4. dueDate = Due Date for Sub Task (Input Date Field)

5. SUBMIT button.

 

Expectation in Submit button:

The Submit button event will take the inputs of the above controls and appends the values to the respective parameters in the query string. 

Example:

jiratickets.com/projectname/CreateSubTaskIssue!default.jspa?parentIssueId=123456&taskNumber=1234&assignee=ABCD&title=xyz&dueDate=01012020/

But, after reading your response, I understand that the above approach will not work where the submit button should hit the framed URL by us which has values taken from form.

 

Please add more details to the below to help me understand better.

I've hit 'Create' button on Sub-Task form on actual JIRA and in the Inspect element > Console, I saw the below data.

 

[{"atlassian.numCreates:":1,"edit.form": false, "pid":"added"; "issuetype":"added";"formToken":"added";"summary":"added";"description":"added"; "duedate":"added";"assignee":"added";"reporter":"added";"customfield_1234":"added"}]

 

but no values that i gave were captured in the above content.

 

Any suggestions? why no values? and how can I get this done? please.

where can i pass the above content in the SUBMIT button hit? Only i succeed in getting the values rather "added"

@Laxman Prasad Kuppili  Hello!

You are asking for very jira specific thing here which is outside my capabilities. Apologies for the same. Not sure why you want to capture this data in inspect element. Though I can share link for rest APIs for jira if this be of any help to you in anyway.

I can help you with setting or executing of rule using "Automation", if that helps you in your case. Let us know in case of concerns.

Cheers
Sherry

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

4,564 views 12 8
Join discussion

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