Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Alternatives to php://input in capturing Jira information

alison_perez
Contributor
June 20, 2024

Hi Jira Community, 

 

I am implementing an automation rule that will send an HTTP request to a PHP script. Currently, I am using the command "file_get_contents('php://input')" to capture the Jira data sets in the script. 


I would like to know if there is an alternative to 'php://input'? Is there a way to get the POST array format of the Jira issue?

Thank you! 

2 answers

0 votes
Anusha A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2024

Hi Alison,

 

Thank you for sharing further details. It might be beneficial to explore other alternatives for fetching Jira form details. Your question seems well-suited for the developer community portal, where experts can provide more insights and guidance on this topic. I suggest you to consider posting your query there for a comprehensive discussion and potential solutions-

 

https://community.developer.atlassian.com/c/jsm-development 

 

Regards,
Anusha A

 

0 votes
Anusha A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2024

Hi Alison,

Welcome to the Atlassian Community support and Thanks for your question!

Based on the information given, I would require further clarification on the overall requirement.

  1. Can you specify what the send web request entail and what is the information being transmitted?
  2. If you are looking to use a REST API for a post command, you can refer to the documentation below - 
    https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post 
  3. Alternatively, if you are developing a custom solution using scripts, you can reach out to our developer community via below link - https://community.developer.atlassian.com/ 

I look forward to hearing your response.

Regards,
Anusha A

alison_perez
Contributor
June 26, 2024

Hi Anusha, thanks for the response: 

1. I need to pass the values of the Jira form to a PHP script. So in the Automation Rule, I have an action part "Send Web Request" which points out to the location of the PHP script. 

 

2. In the PHP script, I am using file_get_contents('php://input') to fetch the values from the Jira form. This one is working. 

 

It came to my knowledge that php://input can be error-prone and as such, I am looking for other alternatives which I can use to fetch the Jira form details. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events